Class: Chewy::Search::Parameters::Load

Inherits:
Storage show all
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.

See Also:

Instance Attribute Summary

Attributes inherited from Storage

#value

Instance Method Summary collapse

Methods inherited from Storage

#==, #initialize, #merge!, #replace!

Constructor Details

This class inherits a constructor from Chewy::Search::Parameters::Storage

Instance Method Details

#renderObject

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

Parameters:

  • other_value ({String, Symbol => Object})

    any acceptable storage value

Returns:

See Also:



17
18
19
# File 'lib/chewy/search/parameters/load.rb', line 17

def update!(other_value)
  value.merge!(normalize(other_value))
end