Class: Pickle::Adapter
- Inherits:
-
Object
- Object
- Pickle::Adapter
- 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
Defined Under Namespace
Classes: Dupe