Class: Blueprinter::Association Private
- Defined in:
- lib/blueprinter/association.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Field
#blueprint, #extractor, #method, #name, #options
Instance Method Summary collapse
- #initialize(method:, name:, blueprint:, view:, parent_blueprint:, extractor: AssociationExtractor.new, options: {}) ⇒ Blueprinter::Association constructor private
Methods inherited from Field
Constructor Details
#initialize(method:, name:, blueprint:, view:, parent_blueprint:, extractor: AssociationExtractor.new, options: {}) ⇒ Blueprinter::Association
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/blueprinter/association.rb', line 19 def initialize(method:, name:, blueprint:, view:, parent_blueprint:, extractor: AssociationExtractor.new, options: {}) BlueprintValidator.validate!(blueprint) super( method, name, extractor, parent_blueprint, .merge( blueprint: blueprint, view: view, association: true ) ) end |