Class: Rectify::FormatAttributesHash

Inherits:
Object
  • Object
show all
Defined in:
lib/rectify/format_attributes_hash.rb

Instance Method Summary collapse

Constructor Details

#initialize(attribute_set) ⇒ FormatAttributesHash

Returns a new instance of FormatAttributesHash.



5
6
7
# File 'lib/rectify/format_attributes_hash.rb', line 5

def initialize(attribute_set)
  @attribute_set = attribute_set
end

Instance Method Details

#format(params) ⇒ Object



9
10
11
12
# File 'lib/rectify/format_attributes_hash.rb', line 9

def format(params)
  convert_indexed_hashes_to_arrays(params)
  convert_hash_keys(params)
end