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.



8
9
10
# File 'lib/blueprinter/extractor.rb', line 8

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



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

def extract(field_name, object, local_options, options={})
  fail NotImplementedError, "An Extractor must implement #extract"
end