Class: VORuby::ADQL::DropTable

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

Overview

Used for avoiding a table in Xmatch.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from XMatchTableAlias

#to_s

Constructor Details

#initialize(name) ⇒ DropTable

Returns a new instance of DropTable.



884
885
886
# File 'lib/voruby/adql/adql.rb', line 884

def initialize(name)
	self.name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



882
883
884
# File 'lib/voruby/adql/adql.rb', line 882

def name
  @name
end

Class Method Details

.from_xml(node) ⇒ Object



888
889
890
891
# File 'lib/voruby/adql/adql.rb', line 888

def self.from_xml(node)
 name = node.attributes['Name']
 return DropTable.new(name)
end

Instance Method Details

#to_adqlsObject



219
220
221
# File 'lib/voruby/adql/transforms.rb', line 219

def to_adqls
	"!#{self.name}"
end