Class: PDC::Resource::AttributeStore

Inherits:
HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/pdc/resource/attribute_store.rb

Instance Method Summary collapse

Instance Method Details

#to_paramsObject



3
4
5
6
7
# File 'lib/pdc/resource/attribute_store.rb', line 3

def to_params
  each_with_object({}) do |(key, value), parameters|
    parameters[key] = parse_value(value)
  end.with_indifferent_access
end