Class: ParamsReady::Query::NullnessPredicateDefinition

Inherits:
AbstractPredicateDefinition show all
Includes:
HavingAttribute
Defined in:
lib/params_ready/query/nullness_predicate.rb

Instance Attribute Summary collapse

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, **opts) ⇒ NullnessPredicateDefinition

Returns a new instance of NullnessPredicateDefinition.



57
58
59
60
61
# File 'lib/params_ready/query/nullness_predicate.rb', line 57

def initialize(*args, attribute_name: nil, **opts)
  super *args, **opts
  @attribute_name = attribute_name
  @value_parameter = Builder.builder(:boolean).instance(self.name, altn: self.altn).fetch
end

Instance Attribute Details

#value_parameterObject (readonly)

Returns the value of attribute value_parameter.



54
55
56
# File 'lib/params_ready/query/nullness_predicate.rb', line 54

def value_parameter
  @value_parameter
end

Instance Method Details

#finishObject



63
64
65
66
# File 'lib/params_ready/query/nullness_predicate.rb', line 63

def finish
  @value_parameter.finish
  super
end