| 1 | package Twilio::InstanceResource; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 18 | ▶ | use 5.016; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 18 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 18 | our $VERSION = '2.001'; | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 1594 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||
| 9 | 1594 | my ($class, $version, $payload, $solution) = @_; | |||||||||||||||||||
| 10 | return bless { | ||||||||||||||||||||
| 11 | version => $version, | ||||||||||||||||||||
| 12 | 1594 | ▶ | properties => ref $payload eq 'HASH' ? { %{$payload} } : {}, | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
$solution // {}
MC/DC100%1/1
$solution // {}
$solution
Truth table100%2/2
A
A= $solution
| |||||||||||||||||||||
| 13 | solution => $solution // {}, | ||||||||||||||||||||
| 14 | }, $class; | ||||||||||||||||||||
| 15 | } | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 10 | ▶ | sub to_hash { | ||||||||||||||||||
|
Subroutine
to_hash: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 18 | 10 | my ($self) = @_; | |||||||||||||||||||
| 19 | 10 | return { %{ $self->{properties} } }; | |||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 18 | 1; | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||