Class: JsonPath::Nodes::Object
- Defined in:
- lib/json_path/nodes/object.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(path, hash) ⇒ Object
constructor
A new instance of Object.
- #value ⇒ Object
Methods inherited from Base
Constructor Details
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
4 5 6 |
# File 'lib/json_path/nodes/object.rb', line 4 def hash @hash end |
Instance Method Details
#value ⇒ Object
14 15 16 |
# File 'lib/json_path/nodes/object.rb', line 14 def value hash.transform_values(&:value) end |