Class: Blueprinter::Extractor Private

Inherits:
Object
  • Object
show all
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.

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, local_options, options = {})
  new.extract(field_name, object, local_options, options)
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.

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/blueprinter/extractor.rb', line 5

def extract(_field_name, _object, _local_options, _options = {})
  raise NotImplementedError, 'An Extractor must implement #extract'
end