Class: Avmtrf1::Redmine::Entities::Issue

Inherits:
Avmtrf1::RestProvider::Entity show all
Defined in:
lib/avmtrf1/redmine/entities/issue.rb

Instance Attribute Summary

Attributes inherited from Avmtrf1::RestProvider::Entity

#instance

Instance Method Summary collapse

Methods inherited from Avmtrf1::RestProvider::Entity

#initialize

Constructor Details

This class inherits a constructor from Avmtrf1::RestProvider::Entity

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)

9
10
11
# File 'lib/avmtrf1/redmine/entities/issue.rb', line 9

def closed?
  status.closed?
end

#dataObject


13
14
15
# File 'lib/avmtrf1/redmine/entities/issue.rb', line 13

def data
  super.fetch('issue')
end

#statusObject


17
18
19
# File 'lib/avmtrf1/redmine/entities/issue.rb', line 17

def status
  @status ||= instance.issue_status(status_id)
end

#status_idObject


25
26
27
# File 'lib/avmtrf1/redmine/entities/issue.rb', line 25

def status_id
  data.fetch('status').fetch('id')
end

#status_nameObject


21
22
23
# File 'lib/avmtrf1/redmine/entities/issue.rb', line 21

def status_name
  data.fetch('status').fetch('name')
end