The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

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 & LICENSE

Copyright 2008 Dave Rolsky, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.