Dave Rolsky > Fey-ORM-Mock-0.06 > Fey::ORM::Mock::Action

Download:
Fey-ORM-Mock-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.06   Source  

NAME ^

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

VERSION ^

version 0.06

DESCRIPTION ^

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

METHODS ^

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 ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2010 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
syntax highlighting: