Class: Spyke::Attributes
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- Spyke::Attributes
- Defined in:
- lib/spyke/attributes.rb
Instance Method Summary collapse
Instance Method Details
#to_params ⇒ Object
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 |