| 1 | package Net::Async::Slack::Event::Message; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 4 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 4 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 4 | our $VERSION = '0.015'; # VERSION | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 4 | ▶ | use Net::Async::Slack::EventType; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | =head1 DESCRIPTION | ||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | { | ||||||||||||||||||||
| 13 | channel => "D5GSPCF62", | ||||||||||||||||||||
| 14 | source_team => "T4PQME0Q2", | ||||||||||||||||||||
| 15 | team => "T4PQME0Q2", | ||||||||||||||||||||
| 16 | text => "test", | ||||||||||||||||||||
| 17 | ts => "1497119268.495648", | ||||||||||||||||||||
| 18 | type => "message", | ||||||||||||||||||||
| 19 | user => "U4P3UKGBA" | ||||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | =cut | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 0 | ▶ | sub slack { shift->{slack} } | ||||||||||||||||||
|
Subroutine
slack: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 0 | ▶ | sub channel { | ||||||||||||||||||
|
Subroutine
channel: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 27 | 0 | my ($self) = @_; | |||||||||||||||||||
| 28 | 0 | ▶ | $self->{channel} //= $self->slack->channel_info($self->channel_id) | ||||||||||||||||||
|
Condition0%0/3
$self->{"channel"} //= $self->slack->channel_info($self->channel_id)
MC/DC0%0/2
$self->{"channel"} //= $self->slack->channel_info($self->channel_id)
$self->{"channel"}
$self->slack->channel_info($self->channel_id)
Truth table0%0/3
A //= B
A= $self->{"channel"}B= $self->slack->channel_info($self->channel_id)
| |||||||||||||||||||||
| 29 | } | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 0 | ▶ | sub source_team { | ||||||||||||||||||
|
Subroutine
source_team: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 32 | 0 | my ($self) = @_; | |||||||||||||||||||
| 33 | 0 | ▶ | $self->{source_team} //= $self->slack->team_info($self->source_team_id) | ||||||||||||||||||
|
Condition0%0/3
$self->{"source_team"} //= $self->slack->team_info($self->source_team_id)
MC/DC0%0/2
$self->{"source_team"} //= $self->slack->team_info($self->source_team_id)
$self->{"source_team"}
$self->slack->team_info($self->source_team_id)
Truth table0%0/3
A //= B
A= $self->{"source_team"}B= $self->slack->team_info($self->source_team_id)
| |||||||||||||||||||||
| 34 | } | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 0 | ▶ | sub team { | ||||||||||||||||||
|
Subroutine
team: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 37 | 0 | my ($self) = @_; | |||||||||||||||||||
| 38 | 0 | ▶ | $self->{team} //= $self->slack->team_info($self->team_id) | ||||||||||||||||||
|
Condition0%0/3
$self->{"team"} //= $self->slack->team_info($self->team_id)
MC/DC0%0/2
$self->{"team"} //= $self->slack->team_info($self->team_id)
$self->{"team"}
$self->slack->team_info($self->team_id)
Truth table0%0/3
A //= B
A= $self->{"team"}B= $self->slack->team_info($self->team_id)
| |||||||||||||||||||||
| 39 | } | ||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | 0 | ▶ | sub channel_id { shift->{channel_id} } | ||||||||||||||||||
|
Subroutine
channel_id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | 0 | ▶ | sub source_team_id { shift->{source_team_id} } | ||||||||||||||||||
|
Subroutine
source_team_id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | 0 | ▶ | sub team_id { shift->{team_id} } | ||||||||||||||||||
|
Subroutine
team_id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | 0 | ▶ | sub text { shift->{text} } | ||||||||||||||||||
|
Subroutine
text: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | 0 | ▶ | sub ts { shift->{ts} } | ||||||||||||||||||
|
Subroutine
ts: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 50 | |||||||||||||||||||||
| 51 | 8 | ▶ | sub type { 'message' } | ||||||||||||||||||
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | 4 | 1; | |||||||||||||||||||
| 54 | |||||||||||||||||||||