Class: Archsight::Query::AST::NumberValue
- Inherits:
-
Object
- Object
- Archsight::Query::AST::NumberValue
- Defined in:
- lib/archsight/query/ast.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ NumberValue
constructor
A new instance of NumberValue.
Constructor Details
#initialize(value) ⇒ NumberValue
Returns a new instance of NumberValue.
261 262 263 |
# File 'lib/archsight/query/ast.rb', line 261 def initialize(value) @value = value.to_f end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
259 260 261 |
# File 'lib/archsight/query/ast.rb', line 259 def value @value end |