Class: JsonPath::Nodes::Number
- Defined in:
- lib/json_path/nodes/number.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(path, value) ⇒ Number
constructor
A new instance of Number.
Methods inherited from Base
Constructor Details
#initialize(path, value) ⇒ Number
Returns a new instance of Number.
6 7 8 9 |
# File 'lib/json_path/nodes/number.rb', line 6 def initialize path, value super path @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/json_path/nodes/number.rb', line 4 def value @value end |