File Coverage

lib/WebService/Intercom/Message.pm
Criterion Covered Total %
statement 64 64 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 68 68 100.0


line stmt bran cond sub pod time code
1 2     2   8 use Moops -strict;
  2         2  
  2         15  
2              
3             # ABSTRACT: represents a message
4              
5             =pod
6              
7             =head1 NAME
8              
9             WebService::Intercom::Message - represent a message
10              
11             =head1 SYNOPSIS
12              
13             my $message = $intercom->create_message(from => {type => 'admin', id => 'test' },
14             body => 'test message',
15             template => 'personal',
16             message_type => 'email',
17             subject => 'test subject');
18              
19             =head2 ATTRIBUTES
20              
21             Attributes are defined at L<http://doc.intercom.io/api/#admin-initiated-conversation>
22             and L<http://doc.intercom.io/api/#user-initiated-conversation>
23              
24             =over
25              
26             =item body
27              
28             =item id
29              
30             =item message_type
31              
32             =item created_at
33              
34             =item intercom - the WebService::Intercom object that created this user object
35              
36             =back
37              
38             =cut
39              
40 2     2   5704 class WebService::Intercom::Message types WebService::Intercom::Types {
  2     2   49  
  2     2   12  
  2         2  
  2         219  
  2         14  
  2         4  
  2         17  
  2         505  
  2         4  
  2         10  
  2         114  
  2         3  
  2         101  
  2         9  
  2         105  
  2         212  
  2         52  
  2         11  
  2         3  
  2         13  
  2         10936  
  2         4  
  2         14  
  2         1240  
  2         2  
  2         16  
  2         255  
  2         5  
  2         20  
  2         144  
  2         3  
  2         15  
  2         432  
  2         3  
  2         14  
  2         1872  
  2         3  
  2         15  
  2         6760  
  2         9  
  2         88  
  2         33  
  2         5  
  2         105  
  2         9  
  2         2  
  2         81  
  2         7  
  2         2  
  2         286  
  2         63  
  2         7478  
41 2         24 has 'type' => (is => 'ro');
42 2         1480 has 'id' => (is => 'ro');
43 2         533 has 'body' => (is => 'ro', isa => Str);
44 2         747 has 'message_type' => (is => 'ro', isa => Maybe[Str]);
45 2         863 has 'template' => (is => 'ro', isa => Maybe[Str]);
46 2         773 has 'owner' => (is => 'ro');
47 2         503 has 'created_at' => (is => 'ro');
48 2         502 has 'intercom' => (is => 'ro');
49             };
50              
51             1;