« blib/lib/Web/Authenticate/Session/Handler/Role.pm
↑ Summary
blib/lib/Web/Authenticate/Session/Storage/Handler/Role.pm »
| 1 | use strict; | ||
| 2 | package Web::Authenticate::Session::Role; | ||
| 3 | $Web::Authenticate::Session::Role::VERSION = '0.004'; | ||
| 4 | use Mouse::Role; | ||
| 5 | #ABSTRACT: A Mouse::Role that defines what methods a Web::Authenticate::Session object should contain. | ||
| 6 | |||
| 7 | |||
| 8 | requires 'id'; | ||
| 9 | |||
| 10 | |||
| 11 | requires 'expires'; | ||
| 12 | |||
| 13 | |||
| 14 | requires 'user'; | ||
| 15 | |||
| 16 | 1; | ||
| 17 | |||
| 18 | __END__ | ||
| 19 | |||
| 20 | =pod | ||
| 21 | |||
| 22 | =encoding UTF-8 | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Web::Authenticate::Session::Role - A Mouse::Role that defines what methods a Web::Authenticate::Session object should contain. | ||
| 27 | |||
| 28 | =head1 VERSION | ||
| 29 | |||
| 30 | version 0.004 | ||
| 31 | |||
| 32 | =head1 METHODS | ||
| 33 | |||
| 34 | =head2 id | ||
| 35 | |||
| 36 | Returns the id of this session. | ||
| 37 | |||
| 38 | my $session_id = $session->id; | ||
| 39 | |||
| 40 | =head2 expires | ||
| 41 | |||
| 42 | Returns the date of expiration for this session (format of date dependent upon the implementation). | ||
| 43 | |||
| 44 | my $expires = $session->expires; | ||
| 45 | |||
| 46 | =head2 user | ||
| 47 | |||
| 48 | Returns the user for this session. | ||
| 49 | |||
| 50 | my $user = $session->user; | ||
| 51 | |||
| 52 | =head1 AUTHOR | ||
| 53 | |||
| 54 | Adam Hopkins <srchulo@cpan.org> | ||
| 55 | |||
| 56 | =head1 COPYRIGHT AND LICENSE | ||
| 57 | |||
| 58 | This software is copyright (c) 2017 by Adam Hopkins. | ||
| 59 | |||
| 60 | This is free software; you can redistribute it and/or modify it under | ||
| 61 | the same terms as the Perl 5 programming language system itself. | ||
| 62 | |||
| 63 | =cut |