| blib/lib/Ambassador/API/V2/Result.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 8 | 8 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 3 | 100.0 |
| pod | n/a | ||
| total | 11 | 11 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Ambassador::API::V2::Result; | ||||||
| 2 | |||||||
| 3 | 2 | 2 | 94466 | use Moo; | |||
| 2 | 7883 | ||||||
| 2 | 8 | ||||||
| 4 | 2 | 2 | 1639 | use Types::Standard ":types"; | |||
| 2 | 44783 | ||||||
| 2 | 16 | ||||||
| 5 | with 'Ambassador::API::V2::Role::Response'; | ||||||
| 6 | |||||||
| 7 | our $VERSION = '0.001'; | ||||||
| 8 | |||||||
| 9 | has data => ( | ||||||
| 10 | is => 'lazy', | ||||||
| 11 | isa => HashRef, | ||||||
| 12 | required => 1 | ||||||
| 13 | ); | ||||||
| 14 | |||||||
| 15 | sub _build_data { | ||||||
| 16 | 1 | 1 | 635 | my $self = shift; | |||
| 17 | |||||||
| 18 | 1 | 3 | return $self->response->{data}; | ||||
| 19 | } | ||||||
| 20 | |||||||
| 21 | 1; | ||||||
| 22 | |||||||
| 23 | __END__ |