line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::HackerNews::User; |
2
|
|
|
|
|
|
|
$WebService::HackerNews::User::VERSION = '0.03'; |
3
|
1
|
|
|
1
|
|
4
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
has id => (is => 'ro'); |
6
|
|
|
|
|
|
|
has delay => (is => 'ro'); |
7
|
|
|
|
|
|
|
has created => (is => 'ro'); |
8
|
|
|
|
|
|
|
has karma => (is => 'ro'); |
9
|
|
|
|
|
|
|
has about => (is => 'ro'); |
10
|
|
|
|
|
|
|
has submitted => (is => 'ro'); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
1; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
WebService::HackerNews::User - a data object representing a HackerNews registered user |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use WebService::HackerNews::User; |
21
|
|
|
|
|
|
|
my $item = WebService::HackerNews::Item->new( |
22
|
|
|
|
|
|
|
id => 'frodo', |
23
|
|
|
|
|
|
|
karma => 1234, |
24
|
|
|
|
|
|
|
# more attributes |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This module is a class for data objects returned by the C method |
30
|
|
|
|
|
|
|
of L. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
The objects have the following attributes, which are named after |
33
|
|
|
|
|
|
|
properties listed in the |
34
|
|
|
|
|
|
|
L- :
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=over 4 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item * B - The user's unique username. Case-sensitive. Required. |
39
|
|
|
|
|
|
|
=item * B - Delay in minutes between a comment's creation and its visibility to other users. |
40
|
|
|
|
|
|
|
=item * B - Creation date of the user, in Unix Time. |
41
|
|
|
|
|
|
|
=item * B - The user's karma. |
42
|
|
|
|
|
|
|
=item * B - The user's optional self-description. HTML. |
43
|
|
|
|
|
|
|
=item * B - List of the user's stories, polls and comments. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=back |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SEE ALSO |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 REPOSITORY |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
L |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Neil Bowers Eneilb@cpan.orgE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Neil Bowers . |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
64
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
67
|
|
|
|
|
|
|
|