WWW::FreshMeat::API::Session - Session role for WWW::FreshMeat::API


WWW-FreshMeat-API documentation Contained in the WWW-FreshMeat-API distribution.

Index


Code Index:

NAME

Top

WWW::FreshMeat::API::Session - Session role for WWW::FreshMeat::API

VERSION

Top

Version 0.01

SYNOPSIS

Top

    use Moose;

    with 'WWW::FreshMeat::API::Session';




DESCRIPTION

Top

This is a Moose role used by WWW::FreshMeat::API providing session attributes & methods.

EXPORT

Top

None.

ATTRIBUTES

Top

session

fatal

Not implemented yet.

METHODS

Top

sid

lifetime

api

clear_session

AUTHOR

Top

Barry Walsh, <draegtun at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-www-freshmeat-api at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-FreshMeat-API. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc WWW::FreshMeat::API::Session




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-FreshMeat-API

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/WWW-FreshMeat-API

* CPAN Ratings

http://cpanratings.perl.org/d/WWW-FreshMeat-API

* Search CPAN

http://search.cpan.org/dist/WWW-FreshMeat-API/

ACKNOWLEDGEMENTS

Top

SEE ALSO

Top

Other WWW::FreshMeat::API modules

WWW::FreshMeat::API

COPYRIGHT & LICENSE

Top


WWW-FreshMeat-API documentation Contained in the WWW-FreshMeat-API distribution.

package WWW::FreshMeat::API::Session;
use Moose::Role;

our $VERSION = '0.01';

has 'session' => ( isa => 'HashRef', is => 'rw', default => sub { +{} } );
has 'fatal'   => ( isa => 'Bool', is => 'rw', default => 1 );

sub sid { $_[0]->session->{ SID } }

sub lifetime { $_[0]->session->{ Lifetime } }

sub api { $_[0]->session->{ 'API Version' } }

sub clear_session { 
    $_[0]->{session} = {};
}


no Moose::Role;

1;


__END__