Class: FIRM::Serializable::JSON::ObjectHash
- Defined in:
- lib/firm/serializer/json.rb
Overview
Derived Hash class to use for deserialized JSON object data which supports using Symbol keys.
Instance Method Summary collapse
-
#[](key) ⇒ Object
Returns the object associated with given key.
-
#include?(key) ⇒ Boolean
(also: #member?, #has_key?, #key?)
Returns true if the given key exists in self otherwise false.
Methods inherited from Hash
Methods included from ContainerPatch
Instance Method Details
#[](key) ⇒ Object
Returns the object associated with given key.
39 40 41 |
# File 'lib/firm/serializer/json.rb', line 39 def [](key) super(key.to_s) end |
#include?(key) ⇒ Boolean Also known as: member?, has_key?, key?
Returns true if the given key exists in self otherwise false.
46 47 48 |
# File 'lib/firm/serializer/json.rb', line 46 def include?(key) super(key.to_s) end |