Class: ParamsReady::Query::PolymorphPredicateDefinition
- Inherits:
-
AbstractPredicateDefinition
- Object
- Parameter::AbstractDefinition
- AbstractPredicateDefinition
- ParamsReady::Query::PolymorphPredicateDefinition
- Extended by:
- Forwardable
- Defined in:
- lib/params_ready/query/polymorph_predicate.rb
Instance Attribute Summary collapse
-
#altn ⇒ Object
readonly
Returns the value of attribute altn.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#polymorph_parameter ⇒ Object
readonly
Returns the value of attribute polymorph_parameter.
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(*args, **opts) ⇒ PolymorphPredicateDefinition
constructor
A new instance of PolymorphPredicateDefinition.
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, **opts) ⇒ PolymorphPredicateDefinition
Returns a new instance of PolymorphPredicateDefinition.
63 64 65 66 67 |
# File 'lib/params_ready/query/polymorph_predicate.rb', line 63 def initialize(*args, **opts) super @polymorph_parameter = Parameter::PolymorphParameterDefinition.new(name, altn: altn) @optional = false end |
Instance Attribute Details
#altn ⇒ Object (readonly)
Returns the value of attribute altn.
54 55 56 |
# File 'lib/params_ready/query/polymorph_predicate.rb', line 54 def altn @altn end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
54 55 56 |
# File 'lib/params_ready/query/polymorph_predicate.rb', line 54 def name @name end |
#polymorph_parameter ⇒ Object (readonly)
Returns the value of attribute polymorph_parameter.
54 55 56 |
# File 'lib/params_ready/query/polymorph_predicate.rb', line 54 def polymorph_parameter @polymorph_parameter end |
Instance Method Details
#finish ⇒ Object
69 70 71 72 |
# File 'lib/params_ready/query/polymorph_predicate.rb', line 69 def finish @polymorph_parameter.finish super end |