| 1 | package Net::SecurityCenter::API::Status; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use parent 'Net::SecurityCenter::Base'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use Net::SecurityCenter::Utils qw(:all); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 2 | our $VERSION = '0.311'; | |||||||||
| 11 | |||||||||||
| 12 | #------------------------------------------------------------------------------- | ||||||||||
| 13 | # METHODS | ||||||||||
| 14 | #------------------------------------------------------------------------------- | ||||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | sub status { | ||||||||
|
Subroutine
status: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||
| 17 | |||||||||||
| 18 | 1 | my ( $self, %args ) = @_; | |||||||||
| 19 | |||||||||||
| 20 | 1 | my $tmpl = { | |||||||||
| 21 | fields => { | ||||||||||
| 22 | filter => \&sc_filter_array_to_string | ||||||||||
| 23 | }, | ||||||||||
| 24 | raw => {}, | ||||||||||
| 25 | }; | ||||||||||
| 26 | |||||||||||
| 27 | 1 | my $params = sc_check_params( $tmpl, \%args ); | |||||||||
| 28 | 1 | my $raw = delete( $params->{'raw'} ); | |||||||||
| 29 | 1 | my $status = $self->client->get( '/status', $params ); | |||||||||
| 30 | |||||||||||
| 31 | 1 | ▶ | if ($raw) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | 0 | return $status; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 1 | return sc_normalize_hash($status); | |||||||||
| 36 | |||||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | #------------------------------------------------------------------------------- | ||||||||||
| 40 | |||||||||||
| 41 | 2 | 1; | |||||||||
| 42 | |||||||||||
| 43 | __END__ | ||||||||||