Class: JsonQuery::CompositePath
- Inherits:
-
Object
- Object
- JsonQuery::CompositePath
- Defined in:
- lib/json_query/composite_path.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#segments ⇒ Object
readonly
Returns the value of attribute segments.
Instance Method Summary collapse
-
#initialize(base: "", segments: []) ⇒ CompositePath
constructor
A new instance of CompositePath.
Constructor Details
#initialize(base: "", segments: []) ⇒ CompositePath
Returns a new instance of CompositePath.
4 5 6 |
# File 'lib/json_query/composite_path.rb', line 4 def initialize(base: "", segments: []) @base, @segments = base, segments end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
3 4 5 |
# File 'lib/json_query/composite_path.rb', line 3 def base @base end |
#segments ⇒ Object (readonly)
Returns the value of attribute segments.
3 4 5 |
# File 'lib/json_query/composite_path.rb', line 3 def segments @segments end |