Class: BloomNetCenterClient::Coercers::IndifferentHash
- Inherits:
-
Virtus::Attribute
- Object
- Virtus::Attribute
- BloomNetCenterClient::Coercers::IndifferentHash
- Defined in:
- lib/bloom_net_center_client/coercers/indifferent_hash.rb
Instance Method Summary collapse
Instance Method Details
#coerce(value) ⇒ Object
5 6 7 |
# File 'lib/bloom_net_center_client/coercers/indifferent_hash.rb', line 5 def coerce(value) value.is_a?(::Hash) ? value.with_indifferent_access : value end |