Class Pickle::Adapter
In: lib/pickle/adapter.rb
Parent: Object

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

Methods

Classes and Modules

Class Pickle::Adapter::ActiveRecord
Class Pickle::Adapter::FactoryGirl
Class Pickle::Adapter::Machinist

Attributes

klass  [R] 
name  [R] 

Public Class methods

return true if the passed class is a special framework class

return true if a klass should be used by pickle

Public Instance methods

[Validate]