Class: JsonPath::Nodes::Number

Inherits:
Base
  • Object
show all
Defined in:
lib/json_path/nodes/number.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#children, #path

Instance Method Summary collapse

Methods inherited from Base

#query

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

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/json_path/nodes/number.rb', line 4

def value
  @value
end