Class: Ss2Json::RowConverter

Inherits:
NestedHash
  • Object
show all
Defined in:
lib/ss2json/row_converter.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash, options = {}) ⇒ RowConverter

Create a nested_hash from a hash with just one level (key,value).

The options are:

* **:ignored_values** Array of ignored values.
* **:show_null** Export the keys with empty values.
* **:dont_convert** Convert 10.0 float values to integers.
* **:downcase_first_letter** Convert to downcase the first letter of each key.


14
15
16
17
# File 'lib/ss2json/row_converter.rb', line 14

def initialize(hash, options={})
  @options = options
  super(hash)
end