blib/lib/WebService/Toggl/API/Tag.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 11 | 81.8 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 5 | 60.0 |
pod | n/a | ||
total | 12 | 16 | 75.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package WebService::Toggl::API::Tag; | ||||||
2 | |||||||
3 | 1 | 1 | 1022 | use WebService::Toggl::Role::Item as => 'JsonItem'; | |||
1 | 1 | ||||||
1 | 5 | ||||||
4 | |||||||
5 | 1 | 1 | 36 | use Moo; | |||
1 | 2 | ||||||
1 | 4 | ||||||
6 | with 'WebService::Toggl::Role::API'; | ||||||
7 | 1 | 1 | 321 | use namespace::clean; | |||
1 | 1 | ||||||
1 | 4 | ||||||
8 | |||||||
9 | with JsonItem( | ||||||
10 | bools => [ qw() ], | ||||||
11 | strings => [ qw(name) ], | ||||||
12 | integers => [ qw(id wid) ], | ||||||
13 | ); | ||||||
14 | |||||||
15 | |||||||
16 | 0 | 0 | sub api_path { 'tags' } | ||||
17 | 0 | 0 | sub api_id { shift->id } | ||||
18 | |||||||
19 | |||||||
20 | |||||||
21 | 1; | ||||||
22 | __END__ |