| 1 | package Net::Peep::Notification; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 5 | require 5.005; | |||||||||||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 5 | ▶ | use Carp; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 5 | ▶ | use Data::Dumper; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 5 | ▶ | use Net::Peep::Log; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 5 | require Exporter; | |||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 5 | ▶ | use vars qw{ @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT $VERSION $LOGGER }; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 5 | @ISA = qw(Exporter); | |||||||||||||||||||
| 14 | 5 | %EXPORT_TAGS = ( ); | |||||||||||||||||||
| 15 | 5 | @EXPORT_OK = ( ); | |||||||||||||||||||
| 16 | 5 | @EXPORT = qw( ); | |||||||||||||||||||
| 17 | 5 | $VERSION = do { my @r = (q$Revision: 1.1 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 5 | $LOGGER = Net::Peep::Log->new(); | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 0 | my $self = shift; | |||||||||||||||||||
| 24 | 0 | ▶ | my $class = ref($self) || $self; | ||||||||||||||||||
|
Condition0%0/3
ref $self || $self
MC/DC0%0/2
ref $self || $self
ref $self
$self
Truth table0%0/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 25 | 0 | my $this = {}; | |||||||||||||||||||
| 26 | 0 | bless $this, $class; | |||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | } # end sub new | ||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 0 | ▶ | sub message { | ||||||||||||||||||
|
Subroutine
message: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 0 | my $self = shift; | |||||||||||||||||||
| 33 | 0 | ▶ | if (@_) { $self->{_MESSAGE} = shift; } | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 34 | 0 | return $self->{_MESSAGE}; | |||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | } # end sub message | ||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | 0 | ▶ | sub status { | ||||||||||||||||||
|
Subroutine
status: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 0 | my $self = shift; | |||||||||||||||||||
| 41 | 0 | ▶ | if (@_) { $self->{_STATUS} = shift; } | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 42 | 0 | return $self->{_STATUS}; | |||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | } # end sub status | ||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | 0 | ▶ | sub datetime { | ||||||||||||||||||
|
Subroutine
datetime: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | 0 | my $self = shift; | |||||||||||||||||||
| 49 | 0 | ▶ | if (@_) { $self->{_DATETIME} = shift; } | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 50 | 0 | return $self->{_DATETIME}; | |||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | } # end sub datetime | ||||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | 0 | ▶ | sub client { | ||||||||||||||||||
|
Subroutine
client: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | 0 | my $self = shift; | |||||||||||||||||||
| 57 | 0 | ▶ | if (@_) { $self->{_CLIENT} = shift; } | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 58 | 0 | return $self->{_CLIENT}; | |||||||||||||||||||
| 59 | |||||||||||||||||||||
| 60 | } # end sub client | ||||||||||||||||||||
| 61 | |||||||||||||||||||||
| 62 | 0 | ▶ | sub hostname { | ||||||||||||||||||
|
Subroutine
hostname: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | 0 | my $self = shift; | |||||||||||||||||||
| 65 | 0 | ▶ | if (@_) { $self->{_HOSTNAME} = shift; } | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 66 | 0 | return $self->{_HOSTNAME}; | |||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | } # end sub hostname | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | 5 | 1; | |||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | __END__ | ||||||||||||||||||||