Class: VORuby::ADQL::RealType

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

Overview

Represents a real number.

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) ⇒ RealType

Returns a new instance of RealType.



368
369
370
# File 'lib/voruby/adql/adql.rb', line 368

def initialize(value)
	self.value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



366
367
368
# File 'lib/voruby/adql/adql.rb', line 366

def value
  @value
end

Class Method Details

.from_xml(node) ⇒ Object



386
387
388
# File 'lib/voruby/adql/adql.rb', line 386

def self.from_xml(node)
  return RealType.new(node.attributes['Value'].to_f)
end