Fey::ORM::Mock::Action - Factory and base class for recorded actions


Fey-ORM-Mock documentation  | view source Contained in the Fey-ORM-Mock distribution.

Index


NAME

Top

Fey::ORM::Mock::Action - Factory and base class for recorded actions

VERSION

Top

version 0.05

DESCRIPTION

Top

This class acts as a factory and base class for actions which are recorded by the mocking layer.

METHODS

Top

This class provides the following methods:

Fey::ORM::Mock::Action->new_action( ... )

This method accepts all the parameters that would be provided to an action subclass, and uses the "type" parameter to determine which subclass to instantiate.

You will probably not need to instantiate this class directly, instead just use Fey::ORM::Mock::Recorder->record_action().

$action->class()

Returns the associated class for an action.

$action->type()

Returns the type for an action, one of "insert", "update", or "delete".

$action->is_insert()

$action->is_update()

$action->is_delete()

These are convenience methods for checking an action's type.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey-ORM-Mock documentation  | view source Contained in the Fey-ORM-Mock distribution.