Class: VORuby::ADQL::StringType

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

Overview

Represents a string literal.

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

Returns a new instance of StringType.



413
414
415
# File 'lib/voruby/adql/adql.rb', line 413

def initialize(value)
	self.value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



411
412
413
# File 'lib/voruby/adql/adql.rb', line 411

def value
  @value
end

Class Method Details

.from_xml(node) ⇒ Object



422
423
424
# File 'lib/voruby/adql/adql.rb', line 422

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