line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Google::Notebook::Notebook; |
2
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
120
|
|
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
57
|
|
4
|
2
|
|
|
2
|
|
9
|
use base qw(Class::Accessor::Fast); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
834
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->mk_ro_accessors(qw/id api/); |
7
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw/title/); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub notes { |
10
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
11
|
0
|
|
|
|
|
|
$self->api->_notes($self); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub delete { |
15
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
16
|
0
|
|
|
|
|
|
$self->api->_delete_notebook($self); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub rename { |
20
|
0
|
|
|
0
|
1
|
|
my ($self, $title) = @_; |
21
|
0
|
|
|
|
|
|
$self->title($title); |
22
|
0
|
|
|
|
|
|
$self->update; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub update { |
26
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
27
|
0
|
|
|
|
|
|
$self->api->_update_notebook($self); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub add_note { |
31
|
0
|
|
|
0
|
1
|
|
my ($self, $content) = @_; |
32
|
0
|
|
|
|
|
|
$self->api->_add_note($self, $content); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub _delete_note { |
36
|
0
|
|
|
0
|
|
|
my ($self, $note) = @_; |
37
|
0
|
|
|
|
|
|
$self->api->_delete_note($note); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub _update_note { |
41
|
0
|
|
|
0
|
|
|
my ($self, $note) = @_; |
42
|
0
|
|
|
|
|
|
$self->api->_update_note($note); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
__END__ |