| blib/lib/Apertur/SDK/Resource/Stats.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 8 | 10 | 80.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 4 | 75.0 |
| pod | 1 | 2 | 50.0 |
| total | 12 | 16 | 75.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Apertur::SDK::Resource::Stats; | ||||||
| 2 | |||||||
| 3 | 1 | 1 | 8 | use strict; | |||
| 1 | 16 | ||||||
| 1 | 43 | ||||||
| 4 | 1 | 1 | 6 | use warnings; | |||
| 1 | 2 | ||||||
| 1 | 175 | ||||||
| 5 | |||||||
| 6 | sub new { | ||||||
| 7 | 3 | 3 | 0 | 5 | my ($class, %args) = @_; | ||
| 8 | 3 | 47 | return bless { http => $args{http} }, $class; | ||||
| 9 | } | ||||||
| 10 | |||||||
| 11 | sub get { | ||||||
| 12 | 0 | 0 | 1 | my ($self) = @_; | |||
| 13 | 0 | return $self->{http}->request('GET', '/api/v1/stats'); | |||||
| 14 | } | ||||||
| 15 | |||||||
| 16 | 1; | ||||||
| 17 | |||||||
| 18 | __END__ |