Class: ParamsReady::Query::FixedOperatorPredicateDefinition

Inherits:
AbstractPredicateDefinition show all
Extended by:
Forwardable
Includes:
HavingAttribute
Defined in:
lib/params_ready/query/fixed_operator_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, attribute_name: nil, type: nil, operator: nil, **opts) ⇒ FixedOperatorPredicateDefinition

Returns a new instance of FixedOperatorPredicateDefinition.



61
62
63
64
65
66
67
# File 'lib/params_ready/query/fixed_operator_predicate.rb', line 61

def initialize(*args, attribute_name: nil, type: nil, operator: nil, **opts)
  @attribute_name = attribute_name
  @type = type
  @operator = operator
  @associations = []
  super *args, **opts
end

Instance Method Details

#finishObject



69
70
71
72
# File 'lib/params_ready/query/fixed_operator_predicate.rb', line 69

def finish
  @type.finish
  super
end