Module: InterMine::PathQuery::Coded

Included in:
LoopConstraint, MultiValueConstraint, SingleValueConstraint, UnaryConstraint
Defined in:
lib/intermine/query.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code.



965
966
967
# File 'lib/intermine/query.rb', line 965

def code
  @code
end

#opObject

Returns the value of attribute op.



965
966
967
# File 'lib/intermine/query.rb', line 965

def op
  @op
end

Class Method Details

.valid_opsObject



967
968
969
# File 'lib/intermine/query.rb', line 967

def self.valid_ops
    return []
end

Instance Method Details

#to_elemObject



971
972
973
974
975
976
977
978
979
980
# File 'lib/intermine/query.rb', line 971

def to_elem
    attributes = {
        "path" => @path,
        "op" => @op,
        "code" => @code
    }.delete_if {|k,v| !v}
    elem = REXML::Element.new("constraint")
    elem.add_attributes(attributes)
    return elem
end