File Coverage

blib/lib/App/BitBucketCli/Repository.pm
Criterion Covered Total %
statement 15 17 88.2
branch n/a
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 21 24 87.5


line stmt bran cond sub pod time code
1             package App::BitBucketCli::Repository;
2              
3             # Created on: 2015-09-16 16:41:19
4             # Create by: Ivan Wills
5             # $Id$
6             # $Revision$, $HeadURL$, $Date$
7             # $Revision$, $Source$, $Date$
8              
9 1     1   7 use Moo;
  1         2  
  1         7  
10 1     1   293 use warnings;
  1         2  
  1         33  
11 1     1   5 use Carp;
  1         2  
  1         56  
12 1     1   5 use Data::Dumper qw/Dumper/;
  1         2  
  1         52  
13 1     1   7 use English qw/ -no_match_vars /;
  1         2  
  1         8  
14              
15             our $VERSION = 0.009;
16              
17             extends qw/App::BitBucketCli::Base/;
18              
19             has [qw/
20             state
21             slug
22             name
23             /] => (
24             is => 'rw',
25             );
26              
27             sub self {
28 0     0 1   my ($self) = @_;
29 0           return $self->links->{self}[0]{href};
30             }
31              
32             1;
33              
34             __END__
35              
36             =head1 NAME
37              
38             App::BitBucketCli::Repository - Stores details of a repository
39              
40             =head1 VERSION
41              
42             This documentation refers to App::BitBucketCli::Repository version 0.009
43              
44             =head1 SYNOPSIS
45              
46             use App::BitBucketCli::Repository;
47              
48             # Brief but working code example(s) here showing the most common usage(s)
49             # This section will be as far as many users bother reading, so make it as
50             # educational and exemplary as possible.
51              
52              
53             =head1 DESCRIPTION
54              
55             =head1 SUBROUTINES/METHODS
56              
57             =head2 C<self ()>
58              
59             Returns the "self" url.
60              
61             =head2 C<TO_JSON ()>
62              
63             Used by L<JSON::XS> for dumping the object
64              
65             =head1 ATTRIBUTES
66              
67             =head2 id
68              
69             =head2 link
70              
71             =head2 links
72              
73             =head2 state
74              
75             =head2 slug
76              
77             =head2 name
78              
79             The name of the repository
80              
81             =head1 DIAGNOSTICS
82              
83             =head1 CONFIGURATION AND ENVIRONMENT
84              
85             =head1 DEPENDENCIES
86              
87             =head1 INCOMPATIBILITIES
88              
89             =head1 BUGS AND LIMITATIONS
90              
91             There are no known bugs in this module.
92              
93             Please report problems to Ivan Wills (ivan.wills@gmail.com).
94              
95             Patches are welcome.
96              
97             =head1 AUTHOR
98              
99             Ivan Wills - (ivan.wills@gmail.com)
100              
101             =head1 LICENSE AND COPYRIGHT
102              
103             Copyright (c) 2015 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
104             All rights reserved.
105              
106             This module is free software; you can redistribute it and/or modify it under
107             the same terms as Perl itself. See L<perlartistic>. This program is
108             distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
109             without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
110             PARTICULAR PURPOSE.
111              
112             =cut