lib/json2/csv_with_header.rb
def process_input
      if @input.respond_to?(:each_key)
        process_keys(@input)
      else
        process_array(@input)
      end
    end
# Creates a new CsvWithHeader instance.
#
# input   - A Hash representing a Json file. This is typically
#           obtained with JSON.parse.
# options - Optional. A Hash of options, see Option to get the list.
Creates a new CsvWithHeader instance.
input   - A Hash representing a Json file. This is typically
obtained with JSON.parse.
options - Optional. A Hash of options, see Option to get the list.
Creates a new CsvWithHeader instance . input - A Hash representing a Json file . This is typically obtained with JSON . parse . options - Optional . A Hash of options see Option to get the list .
def process_input
      if @input.respond_to?(:each_key)
        process_keys(@input)
      else
        process_array(@input)
      end
    end
def process_input if @input . respond_to? ( :each_key ) process_keys ( @input ) else process_array ( @input ) end end
Creates a new CsvWithHeader instance.
Creates a new CsvWithHeader instance .