POE::Component::Github::Request::Role - A role for Github requests


POE-Component-Github documentation Contained in the POE-Component-Github distribution.

Index


Code Index:

NAME

Top

POE::Component::Github::Request::Role - A role for Github requests

SYNOPSIS

Top

  package POE::Component::Github::Request::*;

  use Moose;
  with 'POE::Component::Github::Request::Role';

DESCRIPTION

Top

POE::Component::Github::Request::Role is a role for POE::Component::Github::Request objects.

ATTRIBUTES

Top

login

Github login

token

Github API token

api_url

The url to the Github API, without the preceeding scheme.

scheme

The scheme to use with the API for unauthenticated requests.

auth_scheme

The scheme to use with the API for authenticated requests.

values

A hashref of POST values to send with authenticated requests.

AUTHOR

Top

Chris BinGOs Williams <chris@bingosnet.co.uk>

LICENSE

Top

Copyright © Chris Williams

This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.


POE-Component-Github documentation Contained in the POE-Component-Github distribution.

package POE::Component::Github::Request::Role;

use strict;
use warnings;
use vars qw($VERSION);

$VERSION = '0.08';

use Moose::Role;

# login
has 'login'  => ( is => 'ro', isa => 'Str', default => '' );
has 'token' => ( is => 'ro', isa => 'Str', default => '' );

# api
has 'api_url' => ( is => 'ro', default => 'github.com/api/v2/json/');
has 'scheme'  => ( is => 'ro', default => 'http://');
has 'auth_scheme'    => ( is => 'ro', default => 'https://');
has 'values'  => ( is => 'ro', default => sub { { } } );

no Moose::Role;

1;
__END__