blib/lib/SilverGoldBull/API/Response.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 7 | 9 | 77.7 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 10 | 12 | 83.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package SilverGoldBull::API::Response; | ||||||
2 | |||||||
3 | 1 | 1 | 921 | use strict; | |||
1 | 1 | ||||||
1 | 27 | ||||||
4 | 1 | 1 | 4 | use warnings; | |||
1 | 1 | ||||||
1 | 21 | ||||||
5 | |||||||
6 | 1 | 1 | 170 | use Mouse; | |||
0 | |||||||
0 | |||||||
7 | |||||||
8 | has 'success' => ( | ||||||
9 | is => 'ro', | ||||||
10 | isa => 'Maybe[Bool]', | ||||||
11 | required => 1, | ||||||
12 | reader => 'is_success', | ||||||
13 | ); | ||||||
14 | |||||||
15 | has 'data' => ( | ||||||
16 | is => 'ro', | ||||||
17 | isa => 'Maybe[Any]', | ||||||
18 | reader => 'data', | ||||||
19 | required => 1, | ||||||
20 | ); | ||||||
21 | |||||||
22 | |||||||
23 | 1; |