Class: VORuby::ADQL::IntegerType

Inherits:
NumberType show all
Defined in:
lib/voruby/adql/adql.rb

Overview

Represents an integer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LiteralType

#to_adqls, #to_adqlx, #to_s

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

#valueObject

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