Class: Ss2Json::RowConverter
- Inherits:
-
NestedHash
- Object
- NestedHash
- Ss2Json::RowConverter
- Defined in:
- lib/ss2json/row_converter.rb
Instance Method Summary collapse
-
#initialize(hash, options = {}) ⇒ RowConverter
constructor
Create a nested_hash from a hash with just one level (key,value).
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 = super(hash) end |