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   34 use Moops -strict;
  2         4  
  2         16  
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   5537 class WebService::Intercom::Message types WebService::Intercom::Types {
  2     2   52  
  2     2   10  
  2         3  
  2         140  
  2         9  
  2         3  
  2         16  
  2         519  
  2         4  
  2         13  
  2         109  
  2         3  
  2         92  
  2         8  
  2         109  
  2         167  
  2         55  
  2         10  
  2         3  
  2         11  
  2         11244  
  2         5  
  2         14  
  2         771  
  2         4  
  2         14  
  2         263  
  2         3  
  2         17  
  2         162  
  2         3  
  2         13  
  2         358  
  2         4  
  2         14  
  2         1691  
  2         2  
  2         13  
  2         6512  
  2         7  
  2         76  
  2         7  
  2         2  
  2         67  
  2         7  
  2         3  
  2         83  
  2         7  
  2         3  
  2         257  
  2         15  
  2         7083  
41 2         24 has 'type' => (is => 'ro');
42 2         1253 has 'id' => (is => 'ro');
43 2         524 has 'body' => (is => 'ro', isa => Str);
44 2         690 has 'message_type' => (is => 'ro', isa => Maybe[Str]);
45 2         801 has 'template' => (is => 'ro', isa => Maybe[Str]);
46 2         778 has 'owner' => (is => 'ro');
47 2         699 has 'created_at' => (is => 'ro');
48 2         544 has 'intercom' => (is => 'ro');
49             };
50              
51             1;