| 1 | package Beekeeper::JSONRPC::Request; | ||||||||||
| 2 | |||||||||||
| 3 | 11 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 11 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 11 | our $VERSION = '0.09'; | |||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | sub new { | ||||||||||
| 10 | 0 | ▶ | my $class = shift; | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | 0 | bless { | |||||||||
| 12 | jsonrpc => '2.0', | ||||||||||
| 13 | method => undef, | ||||||||||
| 14 | params => undef, | ||||||||||
| 15 | id => undef, | ||||||||||
| 16 | @_ | ||||||||||
| 17 | }, $class; | ||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub method { $_[0]->{method} } | ||||||||
|
Subroutine
method: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 21 | 0 | ▶ | sub params { $_[0]->{params} } | ||||||||
|
Subroutine
params: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 22 | 0 | ▶ | sub id { $_[0]->{id} } | ||||||||
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 23 | |||||||||||
| 24 | sub response { | ||||||||||
| 25 | 2 | ▶ | $_[0]->{_response}; | ||||||||
|
Subroutine
response: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | sub result { | ||||||||||
| 29 | # Shortcut for $req->response->result | ||||||||||
| 30 | 12 | ▶ | return ($_[0]->{_response}) ? $_[0]->{_response}->{result} : undef; | ||||||||
|
Subroutine
result: called CC=2 SCAR=6.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | sub success { | ||||||||||
| 34 | # Shortcut for $req->response->success | ||||||||||
| 35 | 2 | ▶ | return ($_[0]->{_response}) ? $_[0]->{_response}->success : undef; | ||||||||
|
Subroutine
success: called CC=2 SCAR=6.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | sub mqtt_properties { | ||||||||||
| 39 | 0 | ▶ | $_[0]->{_mqtt_properties}; | ||||||||
|
Subroutine
mqtt_properties: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | sub async_response { | ||||||||||
| 43 | 0 | ▶ | $_[0]->{_async_response} = 1; | ||||||||
|
Subroutine
async_response: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | sub send_response { | ||||||||||
| 47 | 0 | ▶ | $_[0]->{_worker}->__send_response(@_); | ||||||||
|
Subroutine
send_response: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | 11 | 1; | |||||||||
| 51 | |||||||||||
| 52 | __END__ | ||||||||||