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.
965 966 967 |
# File 'lib/intermine/query.rb', line 965 def code @code end |
#op ⇒ Object
Returns the value of attribute op.
965 966 967 |
# File 'lib/intermine/query.rb', line 965 def op @op end |
Class Method Details
.valid_ops ⇒ Object
967 968 969 |
# File 'lib/intermine/query.rb', line 967 def self.valid_ops return [] end |
Instance Method Details
#to_elem ⇒ Object
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 |