StackExchange/Role/Response.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« StackExchange/Owner.pm ↑ Summary StackExchange/Route.pm »
1 package Net::StackExchange::Role::Response;
2 4 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 $Net::StackExchange::Role::Response::VERSION = '0.102740';
4 }
5  
6 # ABSTRACT: Common response methods
7  
8 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 has [
11 qw{
12 total
13 page
14 pagesize
15 }
16 ] => (
17 is => 'ro',
18 isa => 'Int',
19 required => 1,
20 );
21  
22 4 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 4 1;
25  
26  
27  
28 =pod
29  
30 =head1 NAME
31  
32 Net::StackExchange::Role::Response - Common response methods
33  
34 =head1 VERSION
35  
36 version 0.102740
37  
38 =head1 ATTRIBUTES
39  
40 =head2 C<total>
41  
42 Returns total number of items in this sequence.
43  
44 =head2 C<page>
45  
46 Returns page of the total collection returned.
47  
48 =head2 C<pagesize>
49  
50 Returns size of each page returned from the collection.
51  
52 =head1 AUTHOR
53  
54 Alan Haggai Alavi <alanhaggai@alanhaggai.org>
55  
56 =head1 COPYRIGHT AND LICENSE
57  
58 This software is copyright (c) 2010 by Alan Haggai Alavi.
59  
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62  
63 =cut
64  
65  
66 __END__
« StackExchange/Owner.pm ↑ Summary StackExchange/Route.pm »