Class: VORuby::ADQL::SubQuerySet

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

Overview

Represents the subquery in a SQL IN expression.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selection) ⇒ SubQuerySet

Returns a new instance of SubQuerySet.



1331
1332
1333
# File 'lib/voruby/adql/adql.rb', line 1331

def initialize(selection)
	self.selection = selection
end

Instance Attribute Details

#selectionObject

Returns the value of attribute selection.



1329
1330
1331
# File 'lib/voruby/adql/adql.rb', line 1329

def selection
  @selection
end

Class Method Details

.from_xml(node) ⇒ Object



1344
1345
1346
1347
1348
# File 'lib/voruby/adql/adql.rb', line 1344

def self.from_xml(node)
  select_node = REXML::XPath.first(node, 'Select')
  select = Select.from_xml(select_node)
  return SubQuerySet.new(select)
end

Instance Method Details

#to_adqlsObject



281
282
283
# File 'lib/voruby/adql/transforms.rb', line 281

def to_adqls
	self.selection.to_adqls
end

#to_sObject



1340
1341
1342
# File 'lib/voruby/adql/adql.rb', line 1340

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