Class: Avmtrf1::Jira::Entities::Issue
Constant Summary
collapse
- CATEGORY_CLOSED_STATUSES =
%w[PendĂȘncias ConcluĂdo].freeze
- CATEGORY_OPEN_STATUSES =
['Em andamento'].freeze
Instance Attribute Summary
#data, #instance
Instance Method Summary
collapse
#initialize
Instance Method Details
#closed? ⇒ Boolean
20
21
22
23
24
25
26
|
# File 'lib/avmtrf1/jira/entities/issue.rb', line 20
def closed?
return true if CATEGORY_CLOSED_STATUSES.include?(status_category_name)
return false if CATEGORY_OPEN_STATUSES.include?(status_category_name)
raise "Unknown category status \"#{status_category_name}\" " \
"(Status: \"#{status_name}\")"
end
|
#status_category_name ⇒ Object
16
17
18
|
# File 'lib/avmtrf1/jira/entities/issue.rb', line 16
def status_category_name
data.fetch('fields').fetch('status').fetch('statusCategory').fetch('name')
end
|
#status_name ⇒ Object
12
13
14
|
# File 'lib/avmtrf1/jira/entities/issue.rb', line 12
def status_name
data.fetch('fields').fetch('status').fetch('name')
end
|