module Chewy::Search::Parameters::HashStorage
Stores hashes with stringified keys.
Public Instance Methods
update!(other_value)
click to toggle source
Simply merges two value hashes on update
@see Chewy::Search::Parameters::Storage#update!
@param other_value [{String, Symbol
=> Object}] any acceptable storage value @return [{String => Object}] updated value
# File lib/chewy/search/parameters/concerns/hash_storage.rb, line 11 def update!(other_value) value.merge!(normalize(other_value)) end
Private Instance Methods
normalize(value)
click to toggle source
# File lib/chewy/search/parameters/concerns/hash_storage.rb, line 17 def normalize(value) (value || {}).stringify_keys end