summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-15 18:15:29 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-15 18:15:29 +0200
commitbb5a464f5e1cc9ccffbe5e1ef0f6b9c0fcfcfac7 (patch)
treeec999d520cc8c240d7b95016e5c63d2a7f79b310
parentupdate spec (diff)
downloadnet-http-spore-bb5a464f5e1cc9ccffbe5e1ef0f6b9c0fcfcfac7.tar.gz
api attributes
-rw-r--r--lib/Net/HTTP/Spore/Role/Description.pm27
1 files changed, 27 insertions, 0 deletions
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;