lib/JIRA/REST/Class/Issue/Status.pm

filter: Statementstmt 80.9% 17 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 81.4% 22 / 27 SCAR 0.1
CC
1
Cov
81%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/JIRA/REST/Class/Issue/Changelog/Change.pm ↑ Summary lib/JIRA/REST/Class/FactoryTypes.pm »
1 package JIRA::REST::Class::Issue::Status;
2 4 ▶use parent qw( JIRA::REST::Class::Abstract );
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 our $VERSION = '0.11';
8 4 our $SOURCE = 'CPAN';
9 ## $SOURCE = 'GitHub'; # COMMENT
10 # the line above will be commented out by Dist::Zilla
11  
12 # ABSTRACT: A helper class for L<JIRA::REST::Class|JIRA::REST::Class> that represents the status of a JIRA issue as an object.
13  
14 4 __PACKAGE__->mk_ro_accessors( qw/ category / );
15 4 __PACKAGE__->mk_data_ro_accessors( qw/ description iconUrl id name self / );
16 4 __PACKAGE__->mk_contextual_ro_accessors( qw/ transitions / );
17  
18 sub init {
19 0 ▶ my $self = shift;
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
20 0 $self->SUPER::init( @_ );
21  
22 $self->{category} = $self->make_object(
23 'statuscat',
24 {
25 data => $self->data->{statusCategory}
26 }
27 0 );
28  
29 0 return;
30 }
31  
32 4 1;
33  
34 #pod =method B<description>
35 #pod
36 #pod Returns the description of the status.
37 #pod
38 #pod =method B<iconUrl>
39 #pod
40 #pod Returns the URL of the icon the status.
41 #pod
42 #pod =method B<id>
43 #pod
44 #pod Returns the id of the status.
45 #pod
46 #pod =method B<name>
47 #pod
48 #pod Returns the name of the status.
49 #pod
50 #pod =method B<self>
51 #pod
52 #pod Returns the JIRA REST API URL of the status.
53 #pod
54 #pod =method B<category>
55 #pod
56 #pod Returns the category of the status as a
57 #pod L<JIRA::REST::Class::Issue::Status::Category|JIRA::REST::Class::Issue::Status::Category>
58 #pod object.
59 #pod
60 #pod =for stopwords iconUrl
61 #pod
62 #pod =cut
63  
64 __END__
65  
66 =pod
67  
68 =encoding UTF-8
69  
70 =for :stopwords Packy Anderson Alexandr Alexey Ciornii Melezhik iconUrl
71  
72 =head1 NAME
73  
74 JIRA::REST::Class::Issue::Status - A helper class for L<JIRA::REST::Class|JIRA::REST::Class> that represents the status of a JIRA issue as an object.
75  
76 =head1 VERSION
77  
78 version 0.11
79  
80 =head1 METHODS
81  
82 =head2 B<description>
83  
84 Returns the description of the status.
85  
86 =head2 B<iconUrl>
87  
88 Returns the URL of the icon the status.
89  
90 =head2 B<id>
91  
92 Returns the id of the status.
93  
94 =head2 B<name>
95  
96 Returns the name of the status.
97  
98 =head2 B<self>
99  
100 Returns the JIRA REST API URL of the status.
101  
102 =head2 B<category>
103  
104 Returns the category of the status as a
105 L<JIRA::REST::Class::Issue::Status::Category|JIRA::REST::Class::Issue::Status::Category>
106 object.
107  
108 =head1 RELATED CLASSES
109  
110 =over 2
111  
112 =item * L<JIRA::REST::Class|JIRA::REST::Class>
113  
114 =item * L<JIRA::REST::Class::Abstract|JIRA::REST::Class::Abstract>
115  
116 =item * L<JIRA::REST::Class::Issue::Status::Category|JIRA::REST::Class::Issue::Status::Category>
117  
118 =back
119  
120 =head1 AUTHOR
121  
122 Packy Anderson <packy@cpan.org>
123  
124 =head1 COPYRIGHT AND LICENSE
125  
126 This software is Copyright (c) 2017 by Packy Anderson.
127  
128 This is free software, licensed under:
129  
130 The Artistic License 2.0 (GPL Compatible)
131  
132 =cut
« lib/JIRA/REST/Class/Issue/Changelog/Change.pm ↑ Summary lib/JIRA/REST/Class/FactoryTypes.pm »