File Coverage

blib/lib/App/BitBucketCli/Link.pm
Criterion Covered Total %
statement 15 18 83.3
branch n/a
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 21 25 84.0


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