Class: ParamsReady::Query::CustomPredicateDefinition
- Inherits:
-
Parameter::AbstractDefinition
- Object
- Parameter::AbstractDefinition
- ParamsReady::Query::CustomPredicateDefinition
- Defined in:
- lib/params_ready/query/custom_predicate.rb
Instance Attribute Summary
Attributes inherited from Parameter::AbstractDefinition
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(*args, type: nil, to_query: nil, test: nil, **opts) ⇒ CustomPredicateDefinition
constructor
A new instance of CustomPredicateDefinition.
Methods inherited from Parameter::AbstractDefinition
#create, #from_hash, #from_input, #normalize_alternative_name, #parameter_class
Methods included from Extensions::Freezer
#freeze_variable, #freeze_variables, #variables_to_freeze
Methods included from Extensions::Finalizer
Methods included from Extensions::ClassReaderWriter
Methods included from Extensions::LateInit
Methods included from Extensions::Collection
Methods included from Extensions::Freezer::InstanceMethods
Constructor Details
#initialize(*args, type: nil, to_query: nil, test: nil, **opts) ⇒ CustomPredicateDefinition
Returns a new instance of CustomPredicateDefinition.
87 88 89 90 91 92 |
# File 'lib/params_ready/query/custom_predicate.rb', line 87 def initialize(*args, type: nil, to_query: nil, test: nil, **opts) @type = type @to_query = to_query @test = test super *args, **opts end |
Instance Method Details
#finish ⇒ Object
94 95 96 97 |
# File 'lib/params_ready/query/custom_predicate.rb', line 94 def finish @type.finish super end |