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



1352
1353
1354
# File 'lib/voruby/adql/adql.rb', line 1352

def initialize(selection)
	self.selection = selection
end

Instance Attribute Details

#selectionObject

Returns the value of attribute selection.



1350
1351
1352
# File 'lib/voruby/adql/adql.rb', line 1350

def selection
  @selection
end

Class Method Details

.from_xml(node) ⇒ Object



1365
1366
1367
1368
1369
# File 'lib/voruby/adql/adql.rb', line 1365

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



1361
1362
1363
# File 'lib/voruby/adql/adql.rb', line 1361

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