Fey::ORM::Mock::Action::Update - A record of an update


Fey-ORM-Mock documentation Contained in the Fey-ORM-Mock distribution.

Index


Code Index:

NAME

Top

Fey::ORM::Mock::Action::Update - A record of an update

VERSION

Top

version 0.05

DESCRIPTION

Top

This class represents a record of a call to update() for a Fey::ORM::Table based object.

METHODS

Top

This class provides the following methods:

$action->pk()

Returns the primary key of the row update as a hash reference, with the attribute names as keys.

$action->values()

Returns the values updated as a hash reference, with the attribute names as keys. These values are provided as-is, so they may include objects passed to update()

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey-ORM-Mock documentation Contained in the Fey-ORM-Mock distribution.

package Fey::ORM::Mock::Action::Update;
BEGIN {
  $Fey::ORM::Mock::Action::Update::VERSION = '0.05';
}

use strict;
use warnings;

use Moose;
use MooseX::StrictConstructor;

extends 'Fey::ORM::Mock::Action';

has 'pk' => (
    is       => 'ro',
    isa      => 'HashRef[Value]',
    required => 1,
);

has 'values' => (
    is       => 'ro',
    isa      => 'HashRef[Item]',
    required => 1,
);

no Moose;

__PACKAGE__->meta()->make_immutable();

1;

# ABSTRACT: A record of an update




__END__