| 1 | package LINE::Bot::API::Response::Common; | ||||||||||
| 2 | 53 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 53 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 53 | ▶ | use LINE::Bot::API::Response::Error; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 103 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 8 | 103 | my($class, %args) = @_; | |||||||||
| 9 | 103 | my $self = bless { %args }, $class; | |||||||||
| 10 | 103 | ▶ | bless $self, 'LINE::Bot::API::Response::Error' unless $self->is_success; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 103 | $self; | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 205 | ▶ | sub is_success { $_[0]->{http_status} == 200 } | ||||||||
|
Subroutine
is_success: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | 102 | ▶ | sub http_status { $_[0]->{http_status} } | ||||||||
|
Subroutine
http_status: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 16 | 1 | ▶ | sub x_line_request_id { $_[0]->{http_headers}->header('X-Line-Request-Id') } | ||||||||
|
Subroutine
x_line_request_id: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 17 | |||||||||||
| 18 | 53 | 1; | |||||||||