Class: VORuby::ADQL::NotBetweenPred

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

Overview

Represents expressions like Not A.

Instance Attribute Summary

Attributes inherited from BetweenPred

#arg1, #arg2, #arg3

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BetweenPred

create_new_object, #find_condition, #initialize, #match_attributtes, #modify_condition, #remove_condition, #replace_condition, #to_adqlx, #to_s

Constructor Details

This class inherits a constructor from VORuby::ADQL::BetweenPred

Class Method Details

.from_xml(node) ⇒ Object



1624
1625
1626
1627
1628
1629
1630
# File 'lib/voruby/adql/adql.rb', line 1624

def self.from_xml(node)
 arg1_node, arg2_node, arg3_node = node.elements.to_a('Arg')
 arg1 = Arg.from_xml(arg1_node)
 arg2 = Arg.from_xml(arg2_node)
 arg3 = Arg.from_xml(arg3_node)
 return NotBetweenPred.new(arg1, arg2, arg3)
end

Instance Method Details

#to_adqlsObject



322
323
324
# File 'lib/voruby/adql/transforms.rb', line 322

def to_adqls
	"#{self.arg1.to_adqls} NOT BETWEEN #{self.arg2.to_adqls} AND #{self.arg3.to_adqls}"
end