Class: Chewy::Search::Parameters::Load
- Defined in:
- lib/chewy/search/parameters/load.rb
Overview
Acts like standard hash storage, with one exception: all the keys are deeply symbolized for convenience.
Instance Attribute Summary
Attributes inherited from Storage
Instance Method Summary collapse
-
#render ⇒ Object
Doesn't render anythig, has specific handling logic.
-
#update!(other_value) ⇒ {Symbol => Object}
Simply merges two value hashes on update.
Methods inherited from Storage
#==, #initialize, #merge!, #replace!
Constructor Details
This class inherits a constructor from Chewy::Search::Parameters::Storage
Instance Method Details
#render ⇒ Object
Doesn't render anythig, has specific handling logic.
22 |
# File 'lib/chewy/search/parameters/load.rb', line 22 def render; end |
#update!(other_value) ⇒ {Symbol => Object}
Simply merges two value hashes on update
17 18 19 |
# File 'lib/chewy/search/parameters/load.rb', line 17 def update!(other_value) value.merge!(normalize(other_value)) end |