Class: InterMine::PathQuery::TemplateLoopConstraint

Inherits:
LoopConstraint show all
Includes:
TemplateConstraint
Defined in:
lib/intermine/query.rb

Instance Attribute Summary

Attributes included from TemplateConstraint

#editable, #switchable

Attributes inherited from LoopConstraint

#loopPath

Attributes included from Coded

#code, #op

Attributes included from PathFeature

#path

Instance Method Summary collapse

Methods included from TemplateConstraint

#to_elem

Methods inherited from LoopConstraint

#to_elem, valid_ops, #validate, xml_ops

Methods included from Coded

#to_elem, valid_ops

Methods included from PathFeature

#validate

Instance Method Details

#template_param_opObject


1285
1286
1287
1288
1289
1290
1291
1292
# File 'lib/intermine/query.rb', line 1285

def template_param_op
    case @op
    when 'IS'
        return 'eq'
    when 'IS NOT'
        return 'ne'
    end
end