Class: Blueprinter::Extractor Private
- Inherits:
-
Object
- Object
- Blueprinter::Extractor
- Defined in:
- lib/blueprinter/extractor.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.
Direct Known Subclasses
AssociationExtractor, AutoExtractor, BlockExtractor, HashExtractor, PublicSendExtractor
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extract(field_name, object, local_options, options = {}) ⇒ Object
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.
9 10 11 |
# File 'lib/blueprinter/extractor.rb', line 9 def self.extract(field_name, object, , = {}) new.extract(field_name, object, , ) end |
Instance Method Details
#extract(_field_name, _object, _local_options, _options = {}) ⇒ Object
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.
5 6 7 |
# File 'lib/blueprinter/extractor.rb', line 5 def extract(_field_name, _object, , = {}) raise NotImplementedError, 'An Extractor must implement #extract' end |