line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Rarbg::torrentapi::Res; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
76763
|
use strict; |
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
53
|
|
4
|
2
|
|
|
2
|
|
35
|
use 5.008_005; |
|
2
|
|
|
|
|
6
|
|
5
|
|
|
|
|
|
|
our $VERSION = 'v0.1.1'; |
6
|
2
|
|
|
2
|
|
1032
|
use Moose; |
|
2
|
|
|
|
|
904415
|
|
|
2
|
|
|
|
|
14
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has [qw( category download info_page pubdate title)] => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => 'Str' |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has [qw( seeders leechers ranked size)] => ( |
14
|
|
|
|
|
|
|
is => 'ro', |
15
|
|
|
|
|
|
|
isa => 'Int' |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has episode_info => ( |
19
|
|
|
|
|
|
|
is => 'ro', |
20
|
|
|
|
|
|
|
# sometimes we get undef, that breaks validation ... |
21
|
|
|
|
|
|
|
# isa => 'HashRef', |
22
|
|
|
|
|
|
|
# default => sub { {} } |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
2
|
|
|
2
|
|
14986
|
no Moose; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
9
|
|
26
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding utf-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Rarbg::torrentapi::Res - Response class for Rarbg::torrentapi |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This is not meant to be used directly, see Rarbg::torrentapi |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Paco Esteban E<lt>paco@onna.beE<gt> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 COPYRIGHT |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Copyright 2015- Paco Esteban |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 LICENSE |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
51
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SEE ALSO |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |