Class: ParamsReady::Query::CustomPredicateDefinition

Inherits:
Parameter::AbstractDefinition show all
Defined in:
lib/params_ready/query/custom_predicate.rb

Instance Attribute Summary

Attributes inherited from Parameter::AbstractDefinition

#altn, #name

Instance Method Summary collapse

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

#obligatory, #obligatory!

Methods included from Extensions::ClassReaderWriter

#class_reader_writer

Methods included from Extensions::LateInit

#late_init

Methods included from Extensions::Collection

#collection

Methods included from Extensions::Freezer::InstanceMethods

#freeze

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

#finishObject



94
95
96
97
# File 'lib/params_ready/query/custom_predicate.rb', line 94

def finish
  @type.finish
  super
end