File Coverage

blib/lib/Regru/API/Role/Namespace.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Regru::API::Role::Namespace;
2              
3             # ABSTRACT: something that can treat as a namespace
4              
5 13     13   17548 use strict;
  13         35  
  13         425  
6 13     13   83 use warnings;
  13         30  
  13         331  
7 13     13   64 use Moo::Role;
  13         32  
  13         84  
8 13     13   5340 use namespace::autoclean;
  13         12004  
  13         177  
9              
10             our $VERSION = '0.050'; # VERSION
11             our $AUTHORITY = 'cpan:CHIM'; # AUTHORITY
12              
13             requires 'available_methods';
14              
15             1; # End of Regru::API::Role::Namespace
16              
17             __END__
18              
19             =pod
20              
21             =encoding UTF-8
22              
23             =head1 NAME
24              
25             Regru::API::Role::Namespace - something that can treat as a namespace
26              
27             =head1 VERSION
28              
29             version 0.050
30              
31             =head1 SYNOPSIS
32              
33             package Regru::API::Dummy;
34             ...
35             with 'Regru::API::Role::Namespace';
36              
37             sub available_methods { [qw(foo bar baz)] }
38              
39             =head1 DESCRIPTION
40              
41             Any class or role that consumes this one will considered as a namespace (or category) in REG.API v2.
42              
43             =head1 REQUIREMENTS
44              
45             =head2 available_methods
46              
47             A list of methods (as array reference) provides by namespace. An empty array reference should be used in
48             case of namespace does not provide any methods. But this so odd...
49              
50             =head1 SEE ALSO
51              
52             L<Regru::API>
53              
54             L<Regru::API::Role::Client>
55              
56             =head1 BUGS
57              
58             Please report any bugs or feature requests on the bugtracker website
59             L<https://github.com/regru/regru-api-perl/issues>
60              
61             When submitting a bug or request, please include a test-file or a
62             patch to an existing test-file that illustrates the bug or desired
63             feature.
64              
65             =head1 AUTHORS
66              
67             =over 4
68              
69             =item *
70              
71             Polina Shubina <shubina@reg.ru>
72              
73             =item *
74              
75             Anton Gerasimov <a.gerasimov@reg.ru>
76              
77             =back
78              
79             =head1 COPYRIGHT AND LICENSE
80              
81             This software is copyright (c) 2013 by REG.RU LLC.
82              
83             This is free software; you can redistribute it and/or modify it under
84             the same terms as the Perl 5 programming language system itself.
85              
86             =cut