Class: VORuby::ADQL::IntegerType
- Inherits:
-
NumberType
- Object
- LiteralType
- NumberType
- VORuby::ADQL::IntegerType
- Defined in:
- lib/voruby/adql/adql.rb
Overview
Represents an integer.
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ IntegerType
constructor
A new instance of IntegerType.
Methods inherited from LiteralType
Constructor Details
#initialize(value) ⇒ IntegerType
Returns a new instance of IntegerType.
395 396 397 |
# File 'lib/voruby/adql/adql.rb', line 395 def initialize(value) self.value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
393 394 395 |
# File 'lib/voruby/adql/adql.rb', line 393 def value @value end |
Class Method Details
.from_xml(node) ⇒ Object
404 405 406 |
# File 'lib/voruby/adql/adql.rb', line 404 def self.from_xml(node) return IntegerType.new(node.attributes['Value'].to_i) end |