Class: ParamsReady::Query::NullnessPredicateDefinition
- Inherits:
-
AbstractPredicateDefinition
- Object
- Parameter::AbstractDefinition
- AbstractPredicateDefinition
- ParamsReady::Query::NullnessPredicateDefinition
- Includes:
- HavingAttribute
- Defined in:
- lib/params_ready/query/nullness_predicate.rb
Instance Attribute Summary collapse
-
#value_parameter ⇒ Object
readonly
Returns the value of attribute value_parameter.
Attributes inherited from Parameter::AbstractDefinition
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(*args, attribute_name: nil, **opts) ⇒ NullnessPredicateDefinition
constructor
A new instance of NullnessPredicateDefinition.
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, 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_parameter ⇒ Object (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
#finish ⇒ Object
63 64 65 66 |
# File 'lib/params_ready/query/nullness_predicate.rb', line 63 def finish @value_parameter.finish super end |