Class: InterMine::PathQuery::TemplateSingleValueConstraint

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

Constant Summary

Constants inherited from SingleValueConstraint

SingleValueConstraint::CANONICAL_OPS

Instance Attribute Summary

Attributes included from TemplateConstraint

#editable, #switchable

Attributes inherited from SingleValueConstraint

#value

Attributes included from Coded

#code, #op

Attributes included from PathFeature

#path

Instance Method Summary collapse

Methods included from TemplateConstraint

#to_elem

Methods inherited from SingleValueConstraint

#to_elem, valid_ops, #validate

Methods included from AttributeConstraint

#coerce_value, #validate, #validate_value

Methods included from Coded

#to_elem, valid_ops

Methods included from PathFeature

#validate

Instance Method Details

#template_param_opObject


1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
# File 'lib/intermine/query.rb', line 1214

def template_param_op
    case @op
    when '='
        return 'eq'
    when '!='
        return 'ne'
    when '<'
        return 'lt'
    when '<='
        return 'le'
    when '>'
        return 'gt'
    when '>='
        return 'ge'
    else
        return @op
    end
end