File Coverage

blib/lib/Rarbg/torrentapi/Res.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


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