Class: ParamsReady::Query::VariableOperatorPredicateBuilder
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
69
70
71
|
# File 'lib/params_ready/query/variable_operator_predicate.rb', line 69
def self.instance(name, altn: nil, attr: nil)
new VariableOperatorPredicateDefinition.new name, altn: altn, attribute_name: attr
end
|
Instance Method Details
#data_object_handles ⇒ Object
73
74
75
|
# File 'lib/params_ready/query/variable_operator_predicate.rb', line 73
def data_object_handles
[:value, :val]
end
|
#operators(*arr, &block) ⇒ Object
77
78
79
|
# File 'lib/params_ready/query/variable_operator_predicate.rb', line 77
def operators(*arr, &block)
@definition.set_operators(arr, &block)
end
|