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

EntityModel::Hash - wrapper object for dealing with hashrefs

VERSION

version 0.011

SYNOPSIS

See EntityModel::Class.

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.