Class: JsonPath::Nodes::Base
- Inherits:
-
Object
- Object
- JsonPath::Nodes::Base
- Defined in:
- lib/json_path/nodes/base.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Base
constructor
A new instance of Base.
- #query(json_path) ⇒ Object
Constructor Details
#initialize(path) ⇒ Base
Returns a new instance of Base.
10 11 12 13 |
# File 'lib/json_path/nodes/base.rb', line 10 def initialize path @path = path @children = [] end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
8 9 10 |
# File 'lib/json_path/nodes/base.rb', line 8 def children @children end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/json_path/nodes/base.rb', line 7 def path @path end |