line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Google::Notebook::Note; |
2
|
2
|
|
|
2
|
|
15
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
93
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
94
|
|
4
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor::Fast); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
651
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->mk_ro_accessors(qw/id created_on last_modified/); |
7
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw/content notebook/); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub delete { |
10
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
11
|
0
|
|
|
|
|
|
$self->notebook->_delete_note($self); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub edit { |
15
|
0
|
|
|
0
|
1
|
|
my ($self, $content) = @_; |
16
|
0
|
|
|
|
|
|
$self->content($content); |
17
|
0
|
|
|
|
|
|
$self->update; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub update { |
21
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
22
|
0
|
|
|
|
|
|
$self->notebook->_update_note($self); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
__END__ |