NAME

EntityModel::Hash - wrapper object for dealing with hashrefs

VERSION

Version 0.016

DESCRIPTION

Primarily intended as an abstract interface for use with EntityModel backend storage.

METHODS

new

Instantiates with the given hashref.

count

Returns the number of items in the hashref (i.e. keys).

list

Returns all values from the hashref.

set

Sets an entry (identified by key) to the given value.

erase

Deletes the given key from the hashref.

get

Retrieves the value for the given key.

hashref

Returns the contained hashref.

exists

Returns true if the given key exists in the hashref.

keys

Returns a list of all keys.

clear

Clears the hashref.

is_empty

Returns true if there's nothing in the hashref.

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.