Exobrain/Measurement/DirectMessage.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Exobrain::Measurement::DirectMessage;
2  
3 use Moose;
4 use Method::Signatures;
5  
6 # ABSTRACT: A direct message of any sort
7 our $VERSION = '1.08'; # VERSION
8  
9 # Declare that we will have a summary attribute. This is to make
10 # our roles happy.
11 sub summary;
12  
13 # This needs to happen at begin time so it can add the 'payload'
14 # keyword.
15  
16 # TODO: Should this *really* be a ::Social ?
17  
18 BEGIN { with 'Exobrain::Measurement::Social'; }
19  
20  
21 # A summary *must* be provided
22 has summary => (
23 isa => 'Str', is => 'ro', required => 1,
24 );
25  
26 # Direct messages are to me, unless set otherwise.
27 has '+private' => ( default => 1 );
28 has '+to_me' => ( default => 1 );
29  
30 1;
31  
32 __END__