Class: ParamsReady::Query::ExistsPredicateDefinition

Instance Attribute Summary

Attributes inherited from StructuredGroupingDefinition

#arel_table, #predicates

Attributes inherited from Parameter::AbstractStructParameterDefinition

#key_map, #names

Attributes inherited from Parameter::Definition

#default

Attributes inherited from Parameter::AbstractDefinition

#altn, #name

Instance Method Summary collapse

Methods inherited from StructuredGroupingDefinition

#add_predicate

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

#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::Finalizer::InstanceMethods

#finish

Methods included from Extensions::Freezer::InstanceMethods

#freeze

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_collectionObject



96
97
98
# File 'lib/params_ready/query/exists_predicate.rb', line 96

def path_to_collection
  @path_to_collection || [@name]
end