Class: ParamsReady::Query::FixedOperatorPredicateBuilder
Class Method Summary
collapse
Instance Method Summary
collapse
#human_string, #registry
#build, builder, define_parameter, define_registered_parameter, #fetch, fetch_builder, #include, #initialize, #open?, register, register_deprecated, resolve
Class Method Details
.instance(name, altn: nil, attr: nil) ⇒ Object
39
40
41
|
# File 'lib/params_ready/query/fixed_operator_predicate.rb', line 39
def self.instance(name, altn: nil, attr: nil)
new FixedOperatorPredicateDefinition.new name, altn: altn, attribute_name: attr
end
|
Instance Method Details
#data_object_handles ⇒ Object
43
44
45
|
# File 'lib/params_ready/query/fixed_operator_predicate.rb', line 43
def data_object_handles
[@definition.name, @definition.altn]
end
|
#operator(name) ⇒ Object
47
48
49
50
|
# File 'lib/params_ready/query/fixed_operator_predicate.rb', line 47
def operator(name)
operator = PredicateRegistry.operator name, Format.instance(:backend)
@definition.set_operator operator
end
|