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
- #extract(field_name, object, local_options, options = {}) ⇒ Object private
-
#initialize ⇒ Extractor
constructor
private
A new instance of Extractor.
Constructor Details
#initialize ⇒ Extractor
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.
Returns a new instance of Extractor.
4 5 |
# File 'lib/blueprinter/extractor.rb', line 4 def initialize end |
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.
11 12 13 |
# File 'lib/blueprinter/extractor.rb', line 11 def self.extract(field_name, object, , ={}) self.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.
7 8 9 |
# File 'lib/blueprinter/extractor.rb', line 7 def extract(field_name, object, , ={}) fail NotImplementedError, "An Extractor must implement #extract" end |