line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JIRA::REST::Class::Issue::Status; |
2
|
4
|
|
|
4
|
|
1687
|
use parent qw( JIRA::REST::Class::Abstract ); |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
17
|
|
3
|
4
|
|
|
4
|
|
262
|
use strict; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
59
|
|
4
|
4
|
|
|
4
|
|
9
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
74
|
|
5
|
4
|
|
|
4
|
|
50
|
use 5.010; |
|
4
|
|
|
|
|
8
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.10'; |
8
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
__PACKAGE__->mk_ro_accessors( qw/ category / ); |
15
|
|
|
|
|
|
|
__PACKAGE__->mk_data_ro_accessors( qw/ description iconUrl id name self / ); |
16
|
|
|
|
|
|
|
__PACKAGE__->mk_contextual_ro_accessors( qw/ transitions / ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub init { |
19
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
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
|
|
|
|
|
|
|
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 Alexey 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.10 |
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 |