File Coverage

blib/lib/WebService/Toggl/API/WorkspaceUser.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::WorkspaceUser;
2              
3 1     1   1040 use WebService::Toggl::Role::Item as => 'JsonItem';
  1         3  
  1         8  
4              
5 1     1   40 use Moo;
  1         1  
  1         5  
6             with 'WebService::Toggl::Role::API';
7 1     1   328 use namespace::clean;
  1         1  
  1         5  
8              
9             with JsonItem(
10             bools => [ qw( admin active) ],
11             strings => [ qw( email at name invite_url ) ],
12             integers => [ qw( id uid wid ) ]
13             );
14              
15 0     0     sub api_path { 'workspace_users' }
16 0     0     sub api_id { shift->id }
17              
18              
19             1;
20             __END__
21             {
22             "id":3123855,
23             "uid":35224123,
24             "wid":777,
25             "admin":false,
26             "active":false,
27             "email":"John@toggl.com",
28             "at":"2013-05-17T16:50:36+03:00",
29             "name":"John Swift",
30             "invite_url":"https://toggl.com/user/accept_invitation?code=fb3ad3db5dasd123c2b529e3a519826"
31             },