summary refs log tree commit diff
path: root/lib/MooseX/Net/API/Meta/Method
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-03 09:50:39 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-03 09:50:39 +0200
commitb62c50ed3c9b48d7d964134de5f4ef0fd36a6112 (patch)
treed79dfc9770a93823b663000edaa59129e780f7d8 /lib/MooseX/Net/API/Meta/Method
parentupdate POD (diff)
downloadmoosex-net-api-b62c50ed3c9b48d7d964134de5f4ef0fd36a6112.tar.gz
update POD
Diffstat (limited to '')
-rw-r--r--lib/MooseX/Net/API/Meta/Method.pm32
-rw-r--r--lib/MooseX/Net/API/Meta/Method/APIDeclare.pm28
-rw-r--r--lib/MooseX/Net/API/Meta/Method/APIMethod.pm26
3 files changed, 82 insertions, 4 deletions
diff --git a/lib/MooseX/Net/API/Meta/Method.pm b/lib/MooseX/Net/API/Meta/Method.pm
index bb29a97..7c388b9 100644
--- a/lib/MooseX/Net/API/Meta/Method.pm
+++ b/lib/MooseX/Net/API/Meta/Method.pm
@@ -11,13 +11,13 @@ extends 'Moose::Meta::Method';
 subtype UriPath => as 'Str' => where { $_ =~ m!^/! } =>
   message {"path must start with /"};
 
-enum 'Method' => qw(GET POST PUT DELETE);
+enum Method => qw(GET POST PUT DELETE);
 
 has description => (is => 'ro', isa => 'Str');
 has method      => (is => 'ro', isa => 'Method', required => 1);
 has path        => (is => 'ro', isa => 'UriPath', required => 1, coerce => 1);
-has params_in_url => (is => 'ro', isa => 'Bool', default => 0);
-has authentication => (is => 'ro', isa => 'Bool', required => 0, default => 0);
+has params_in_url  => (is => 'ro', isa => 'Bool', default => 0);
+has authentication => (is => 'ro', isa => 'Bool', default => 0);
 has expected => (
     traits     => ['Array'],
     is         => 'ro',
@@ -195,3 +195,29 @@ sub _build_uri {
 }
 
 1;
+__END__
+
+=head1 NAME
+
+MooseX::Net::API::Meta::Class::Method
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+=head1 AUTHOR
+
+franck cuny E<lt>franck@lumberjaph.netE<gt>
+
+=head1 SEE ALSO
+
+=head1 LICENSE
+
+Copyright 2009, 2010 by Linkfluence
+
+http://linkfluence.net
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
diff --git a/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm b/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm
index b65ef41..14fb83d 100644
--- a/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm
+++ b/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm
@@ -21,7 +21,7 @@ has accepted_options => (
     default => sub {
         [   qw/api_base_url
               api_format
-              api_useranem
+              api_username
               api_password
               authentication
               authentication_method/
@@ -57,3 +57,29 @@ sub add_net_api_declare {
 }
 
 1;
+__END__
+
+=head1 NAME
+
+MooseX::Net::API::Meta::Class::Method::APIDeclare
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+=head1 AUTHOR
+
+franck cuny E<lt>franck@lumberjaph.netE<gt>
+
+=head1 SEE ALSO
+
+=head1 LICENSE
+
+Copyright 2009, 2010 by Linkfluence
+
+http://linkfluence.net
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
diff --git a/lib/MooseX/Net/API/Meta/Method/APIMethod.pm b/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
index 8185522..d55fe82 100644
--- a/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
+++ b/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
@@ -58,3 +58,29 @@ after add_net_api_method => sub {
 };
 
 1;
+__END__
+
+=head1 NAME
+
+MooseX::Net::API::Meta::Class::Method::APIMethod
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+=head1 AUTHOR
+
+franck cuny E<lt>franck@lumberjaph.netE<gt>
+
+=head1 SEE ALSO
+
+=head1 LICENSE
+
+Copyright 2009, 2010 by Linkfluence
+
+http://linkfluence.net
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut