line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::HackerNews::User; |
2
|
|
|
|
|
|
|
$WebService::HackerNews::User::VERSION = '0.05'; |
3
|
1
|
|
|
1
|
|
4
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
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
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item * B - Delay in minutes between a comment's creation and its visibility to other users. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item * B - Creation date of the user, in Unix Time. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item * B - The user's karma. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item * B - The user's optional self-description. HTML. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item * B - List of the user's stories, polls and comments. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=back |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SEE ALSO |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
L |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 REPOSITORY |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
L |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AUTHOR |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Neil Bowers Eneilb@cpan.orgE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Neil Bowers . |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
69
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|