Class: ParamsReady::Query::ExistsPredicateDefinition
- Inherits:
-
StructuredGroupingDefinition
- Object
- Parameter::AbstractDefinition
- Parameter::Definition
- Parameter::AbstractStructParameterDefinition
- Parameter::StructParameterDefinition
- StructuredGroupingDefinition
- ParamsReady::Query::ExistsPredicateDefinition
- Defined in:
- lib/params_ready/query/exists_predicate.rb
Instance Attribute Summary
Attributes inherited from StructuredGroupingDefinition
Attributes inherited from Parameter::AbstractStructParameterDefinition
Attributes inherited from Parameter::Definition
Attributes inherited from Parameter::AbstractDefinition
Instance Method Summary collapse
-
#initialize(*args, path_to_collection: nil, **opts) ⇒ ExistsPredicateDefinition
constructor
A new instance of ExistsPredicateDefinition.
- #path_to_collection ⇒ Object
Methods inherited from StructuredGroupingDefinition
Methods inherited from Parameter::StructParameterDefinition
#add_map, #ensure_canonical, #remap?
Methods inherited from Parameter::AbstractStructParameterDefinition
#add_child, #child_definition, #duplicate_value, #freeze_value, #has_child?, #infer_default, #set_default
Methods inherited from Parameter::Definition
#canonical_default, #default_defined?, #fetch_callable_default, #fetch_default, #finish, #memoize?, #name_for_formatter, #no_input?, #no_output?, #postprocess, #preprocess, #restricted_for_format?, #set_local, #set_no_input, #set_postprocessor, #set_preprocessor
Methods inherited from Parameter::AbstractDefinition
#create, #finish, #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::Finalizer::InstanceMethods
Methods included from Extensions::Freezer::InstanceMethods
Constructor Details
#initialize(*args, path_to_collection: nil, **opts) ⇒ ExistsPredicateDefinition
Returns a new instance of ExistsPredicateDefinition.
91 92 93 94 |
# File 'lib/params_ready/query/exists_predicate.rb', line 91 def initialize(*args, path_to_collection: nil, **opts) @path_to_collection = path_to_collection super *args, **opts end |
Instance Method Details
#path_to_collection ⇒ Object
96 97 98 |
# File 'lib/params_ready/query/exists_predicate.rb', line 96 def path_to_collection @path_to_collection || [@name] end |