Class: Pickle::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/pickle_dupe/adapter.rb

Overview

Abstract Factory adapter class, if you have a factory type setup, you can easily create an adaptor to make it work with Pickle.

The factory adaptor must have a #factories class method that returns its instances, and each instance must respond to:

#name : identifies the factory by name (default is attr_reader)
#klass : returns the associated model class for this factory (default is attr_reader)
#create(attrs = {}) : returns a newly created object

Direct Known Subclasses

Dupe

Defined Under Namespace

Classes: Dupe