class Blueprinter::Transformer
@api private
Public Class Methods
transform(result_hash, primary_obj, options = {})
click to toggle source
# File lib/blueprinter/transformer.rb, line 8 def self.transform(result_hash, primary_obj, options = {}) self.new.transform(result_hash, primary_obj, options) end
Public Instance Methods
transform(_result_hash, _primary_obj, _options = {})
click to toggle source
# File lib/blueprinter/transformer.rb, line 4 def transform(_result_hash, _primary_obj, _options = {}) fail NotImplementedError, "A Transformer must implement #transform" end