Class: VORuby::ADQL::JointTableQualifier

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

Overview

Denotes the type of a Join operation.

Constant Summary collapse

@@joins =
['LEFT_OUTER', 'RIGHT_OUTER', 'FULL_OUTER',
'INNER', 'CROSS']

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, join_list = nil) ⇒ JointTableQualifier

Returns a new instance of JointTableQualifier.



2630
2631
2632
2633
# File 'lib/voruby/adql/adql.rb', line 2630

def initialize(value, join_list=nil)
  @join_list = join_list || @@joins
  self.value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



2625
2626
2627
# File 'lib/voruby/adql/adql.rb', line 2625

def value
  @value
end

Class Method Details

.from_xml(node) ⇒ Object



2648
2649
2650
# File 'lib/voruby/adql/adql.rb', line 2648

def self.from_xml(node)
  return JointTableQualifier.new(node.text)
end

Instance Method Details

#to_adqlsObject



549
550
551
# File 'lib/voruby/adql/transforms.rb', line 549

def to_adqls
  self.value
end

#to_sObject



2644
2645
2646
# File 'lib/voruby/adql/adql.rb', line 2644

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