Skip to content

Commit

Permalink
Added appropriate 'requires' to Moose Roles
Browse files Browse the repository at this point in the history
  • Loading branch information
semifor committed Jun 17, 2009
1 parent ba8cfcf commit a5b1067
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Net/Twitter/Role/API/REST.pm
@@ -1,6 +1,8 @@
package Net::Twitter::Role::API::REST;

use Moose::Role;

requires qw/credentials/;

use Net::Twitter::API;

requires qw/ua username password credentials/;
Expand Down
5 changes: 4 additions & 1 deletion lib/Net/Twitter/Role/API/TwitterVision.pm
@@ -1,5 +1,8 @@
package Net::Twitter::Role::API::TwitterVision;
use Moose::Role;

requires qw/credentials/;

use Net::Twitter::API;

has tvurl => ( isa => 'Str', is => 'ro', default => 'http://twittervision.com' );
Expand Down Expand Up @@ -54,7 +57,7 @@ Net::Twitter::Role::API::TwitterVision - A definition of the TwitterVision API a
=head1 DESCRIPTION
B<Net::Twitter::Role::API::TwitterVision provides definitions for all the TwitterVision API
B<Net::Twitter::Role::API::TwitterVision> provides definitions for all the TwitterVision API
methods. Applying this role to any class provides methods for all of the
TwitterVision API methods.
Expand Down
2 changes: 2 additions & 0 deletions lib/Net/Twitter/Role/OAuth.pm
@@ -1,6 +1,8 @@
package Net::Twitter::Role::OAuth;
use Moose::Role;

requires qw/ua/;

use namespace::autoclean;

use Net::OAuth::Simple;
Expand Down
2 changes: 2 additions & 0 deletions lib/Net/Twitter/Role/WrapError.pm
@@ -1,6 +1,8 @@
package Net::Twitter::Role::WrapError;
use Moose::Role;

requires qw/_parse_result/;

use namespace::autoclean;

has _http_response => ( isa => 'HTTP::Response', is => 'rw',
Expand Down

0 comments on commit a5b1067

Please sign in to comment.