Module: InterMine::PathQuery::Coded
- Included in:
- LoopConstraint, MultiValueConstraint, SingleValueConstraint, UnaryConstraint
- Defined in:
- lib/intermine/query.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#op ⇒ Object
Returns the value of attribute op.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
1053 1054 1055 |
# File 'lib/intermine/query.rb', line 1053 def code @code end |
#op ⇒ Object
Returns the value of attribute op.
1053 1054 1055 |
# File 'lib/intermine/query.rb', line 1053 def op @op end |
Class Method Details
.valid_ops ⇒ Object
1055 1056 1057 |
# File 'lib/intermine/query.rb', line 1055 def self.valid_ops return [] end |
Instance Method Details
#to_elem ⇒ Object
1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 |
# File 'lib/intermine/query.rb', line 1059 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 |