Class: Spyke::Attributes

Inherits:
HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/spyke/attributes.rb

Instance Method Summary collapse

Instance Method Details

#to_paramsObject



3
4
5
6
7
# File 'lib/spyke/attributes.rb', line 3

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