NAME

WWW::Suffit::AuthDB::Group - WWW::Suffit::AuthDB group class

SYNOPSIS

use WWW::Suffit::AuthDB::Group;

DESCRIPTION

This module provides AuthDB group methods

ATTRIBUTES

This class implements the following attributes

cached

$group = $group->cached( 12345.123456789 );
my $cached = $group->cached;

Sets or returns time of caching group data

Default: 0

cachekey

$group = $group->cachekey( 'abcdef1234567890' );
my $cachekey = $group->cachekey;

Sets or returns the cache key string

description

$group->description('Root group');
my $description = $group->description;

Sets and returns description of the group

error

$group = $group->error( 'Oops' );
my $error = $group->error;

Sets or returns error string

expires

$group = $group->expires( 300 );
my $expires = $group->expires;

Sets or returns cache/object expiration time in seconds

Default: 300 (5 min)

groupname

$group->groupname('wheel');
my $groupname = $group->groupname;

Sets and returns groupname of the group

id

$group = $group->id( 2 );
my $id = $group->id;

Sets or returns id of group

Default: 0

is_cached

This attribute returns true if the group data was cached

Default: false

users

$group->users([qw/ alice bob /]);
my $users = $group->users; # ['alice', 'bob']

Sets and returns users of group (array of users)

METHODS

This class inherits all methods from Mojo::Base and implements the following new ones

is_valid

$group->is_valid or die "Incorrect group";

Returns boolean status of group's data

mark

Marks object as cached

HISTORY

See Changes file

TO DO

See TODO file

SEE ALSO

WWW::Suffit::AuthDB, Mojolicious

AUTHOR

Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2025 D&D Corporation. All Rights Reserved

LICENSE

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

See LICENSE file and https://dev.perl.org/licenses/