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



1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
# File 'lib/intermine/query.rb', line 1122

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