summaryrefslogblamecommitdiff
path: root/lib/Net/HTTP/Spore/Role/Description.pm
blob: 2723fef6d8f1fd238e746a5bfbef04c3b1d3d305 (plain) (tree)
1
2
3
4
5
6
7
8






                                            
                 





                     
                

                            
                               

  
                       

                        
                                      

  






                          
  
package Net::HTTP::Spore::Role::Description;

# ABSTRACT: attributes for API description

use Moose::Role;
use MooseX::Types::URI qw/Uri/;

has base_url => (
    is       => 'rw',
    isa      => Uri,
    coerce   => 1,
    required => 1,
);

has formats => (
    is        => 'rw',
    isa       => 'ArrayRef',
    predicate => 'has_formats',
);

has authentication => (
    is        => 'rw',
    isa       => 'Bool',
    predicate => 'has_authentication',
);

has expected_status => (
    is      => 'rw',
    isa     => 'Array',
    lazy    => 1,
    default => sub { [] },
);

1;