line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package LINE::Notify::Simple::Response; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
22
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
71
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
55
|
|
5
|
2
|
|
|
2
|
|
9
|
use utf8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
17
|
|
6
|
2
|
|
|
2
|
|
53
|
use feature qw(say); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
208
|
|
7
|
2
|
|
|
2
|
|
13
|
use parent qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
36
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw(status message status_line rate_limit_headers)); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub is_success { |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
0
|
161
|
my $self = shift; |
14
|
1
|
50
|
|
|
|
5
|
return $self->status == 200 ? 1 : 0; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub header_field_names { |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
20
|
0
|
|
|
|
|
|
my @names; |
21
|
0
|
0
|
|
|
|
|
if (ref($self->rate_limit_headers) eq "HASH") { |
22
|
0
|
|
|
|
|
|
@names = keys %{$self->rate_limit_headers}; |
|
0
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
} |
24
|
0
|
|
|
|
|
|
return @names; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |