| 1 | package Net::HTTP::Spore::Role::Description; | ||
| 2 | 26 | $Net::HTTP::Spore::Role::Description::VERSION = '0.09'; | |
| 3 | # ABSTRACT: attributes for API description | ||
| 4 | |||
| 5 | 26 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 26 | ▶ | use MooseX::Types::Moose qw/ArrayRef/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 26 | ▶ | use MooseX::Types::URI qw/Uri/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 26 | ▶ | use Net::HTTP::Spore::Meta::Types qw/Boolean/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 26 | has base_url => ( | |
| 11 | is => 'rw', | ||
| 12 | isa => Uri, | ||
| 13 | coerce => 1, | ||
| 14 | required => 1, | ||
| 15 | ); | ||
| 16 | |||
| 17 | 26 | has formats => ( | |
| 18 | is => 'rw', | ||
| 19 | isa => ArrayRef, | ||
| 20 | predicate => 'has_formats', | ||
| 21 | ); | ||
| 22 | |||
| 23 | 26 | has authentication => ( | |
| 24 | is => 'rw', | ||
| 25 | isa => Boolean, | ||
| 26 | predicate => 'has_authentication', | ||
| 27 | coerce => 1, | ||
| 28 | ); | ||
| 29 | |||
| 30 | has expected_status => ( | ||
| 31 | is => 'rw', | ||
| 32 | isa => ArrayRef, | ||
| 33 | lazy => 1, | ||
| 34 | 0 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 35 | 26 | ); | |
| 36 | |||
| 37 | 26 | 1; | |
| 38 | |||
| 39 | __END__ | ||