From bb5a464f5e1cc9ccffbe5e1ef0f6b9c0fcfcfac7 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Wed, 15 Sep 2010 18:15:29 +0200 Subject: api attributes --- lib/Net/HTTP/Spore/Role/Description.pm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/Net/HTTP/Spore/Role/Description.pm diff --git a/lib/Net/HTTP/Spore/Role/Description.pm b/lib/Net/HTTP/Spore/Role/Description.pm new file mode 100644 index 0000000..b435643 --- /dev/null +++ b/lib/Net/HTTP/Spore/Role/Description.pm @@ -0,0 +1,27 @@ +package Net::HTTP::Spore::Role::Description; + +# ABSTRACT: attributes for API description + +use Moose::Role; +use MooseX::Types::URI qw/Uri/; + +has api_base_url => ( + is => 'rw', + isa => Uri, + coerce => 1, + required => 1, +); + +has api_format => ( + is => 'rw', + isa => 'ArrayRef', + predicate => 'has_api_format', +); + +has api_authentication => ( + is => 'rw', + isa => 'Bool', + predicate => 'has_api_authentication', +); + +1; -- cgit 1.4.1