Class: VORuby::ADQL::NotLikePred
- Defined in:
- lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb
Overview
The Not Like expression of a query.
Instance Attribute Summary
Attributes inherited from LikePred
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from LikePred
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::LikePred
Class Method Details
.from_xml(node) ⇒ Object
1272 1273 1274 1275 1276 1277 1278 |
# File 'lib/voruby/adql/adql.rb', line 1272 def self.from_xml(node) arg_node = REXML::XPath.first(node, 'Arg') arg = Arg.from_xml(arg_node) pattern_node = REXML::XPath.first(node, 'Pattern') pattern = Pattern.from_xml(pattern_node) return NotLikePred.new(arg, pattern) end |
Instance Method Details
#to_adqls ⇒ Object
275 276 277 |
# File 'lib/voruby/adql/transforms.rb', line 275 def to_adqls "#{self.arg.to_adqls} NOT LIKE #{self.pattern.to_adqls}" end |