Class: VORuby::ADQL::XMatchTableAlias

Inherits:
Object
  • Object
show all
Defined in:
lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb

Overview

The base type for all table inclusion or drop types used in a cross match expression.

Direct Known Subclasses

DropTable, IncludeTable

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_xml(node) ⇒ Object



859
860
861
862
863
# File 'lib/voruby/adql/adql.rb', line 859

def self.from_xml(node)
 #type_s = node.attributes['xsi:type']
 type_s = node.find_attribute('type', 'http://www.w3.org/2001/XMLSchema-instance')
 xtable = ObjectBuilder.get_class_for(type_s).from_xml(node)
end

Instance Method Details

#to_adqlsObject



213
214
215
# File 'lib/voruby/adql/transforms.rb', line 213

def to_adqls
	self.name
end

#to_sObject



855
856
857
# File 'lib/voruby/adql/adql.rb', line 855

def to_s
	"{name=#{self.name}}"
end