module InterMine::PathQuery::Coded

Attributes

code[RW]
op[RW]

Public Class Methods

valid_ops() click to toggle source
     # File lib/intermine/query.rb
1059 def self.valid_ops
1060     return []
1061 end

Public Instance Methods

to_elem() click to toggle source
     # File lib/intermine/query.rb
1063 def to_elem
1064     attributes = {
1065         "path" => @path,
1066         "op" => @op,
1067         "code" => @code
1068     }.delete_if {|k,v| !v}
1069     elem = REXML::Element.new("constraint")
1070     elem.add_attributes(attributes)
1071     return elem
1072 end