Class: VORuby::ADQL::AllSelectionItem

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

Overview

Represent all columns as in Select * query.

Constant Summary collapse

@@value =
'*'

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAllSelectionItem

Returns a new instance of AllSelectionItem.



757
# File 'lib/voruby/adql/adql.rb', line 757

def initialize;end

Class Method Details

.from_xml(node) ⇒ Object



767
768
769
# File 'lib/voruby/adql/adql.rb', line 767

def self.from_xml(node)
  return AllSelectionItem.new()
end

.valueObject



759
760
761
# File 'lib/voruby/adql/adql.rb', line 759

def self.value
  return @@value
end

Instance Method Details

#to_adqlsObject



163
164
165
# File 'lib/voruby/adql/transforms.rb', line 163

def to_adqls
  '*'
end

#to_adqlx(element_name) ⇒ Object



167
168
169
# File 'lib/voruby/adql/transforms.rb', line 167

def to_adqlx(element_name)
  "<#{element_name} xsi:type=\"allSelectionItemType\"/>"
end

#to_sObject



763
764
765
# File 'lib/voruby/adql/adql.rb', line 763

def to_s
     "{expression=#{self.value}}"
end