File Coverage

lib/WebService/Intercom/Note.pm
Criterion Covered Total %
statement 62 62 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 66 66 100.0


line stmt bran cond sub pod time code
1 2     2   9 use Moops -strict;
  2         3  
  2         17  
2              
3             # ABSTRACT: represents a note
4              
5             =pod
6              
7             =head1 NAME
8              
9             WebService::Intercom::Note - represent a note
10              
11             =head1 SYNOPSIS
12              
13             my $user = $intercom->user_get(email => 'test@example.com');
14             my $note = $user->add_note(body => "This is a test note");
15              
16             =head2 ATTRIBUTES
17              
18             Attributes are defined at L<http://doc.intercom.io/api/#notes>
19              
20             =over
21              
22             =item type
23              
24             =item id
25              
26             =item created_at
27              
28             =item user
29              
30             =item body
31              
32             =item author
33              
34             =item intercom - the WebService::Intercom object that created this user object
35              
36             =back
37              
38             =cut
39              
40 2     2   5834 class WebService::Intercom::Note types WebService::Intercom::Types {
  2     2   50  
  2     2   11  
  2         2  
  2         130  
  2         8  
  2         4  
  2         16  
  2         597  
  2         3  
  2         12  
  2         112  
  2         4  
  2         109  
  2         10  
  2         2  
  2         162  
  2         60  
  2         10  
  2         2  
  2         15  
  2         11177  
  2         4  
  2         15  
  2         1215  
  2         3  
  2         16  
  2         244  
  2         4  
  2         18  
  2         140  
  2         2  
  2         16  
  2         384  
  2         3  
  2         20  
  2         1765  
  2         4  
  2         16  
  2         6809  
  2         6  
  2         79  
  2         9  
  2         2  
  2         71  
  2         9  
  2         3  
  2         127  
  2         9  
  2         2  
  2         258  
  2         17  
  2         7288  
41 2         22 has 'type' => (is => 'ro');
42 2         1438 has 'id' => (is => 'ro');
43 2         583 has 'created_at' => (is => 'rw');
44 2         577 has 'user' => (is => 'ro');
45 2         497 has 'body' => (is => 'ro', isa => Str);
46 2         789 has 'author' => ('is' => 'ro', isa => Maybe[Str]);
47             };
48              
49             1;