Class: JiraClient::Issue

Inherits:
Base
  • Object
show all
Defined in:
lib/jira_client/issue.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

attr_reader, conversions, convert, #initialize

Constructor Details

This class inherits a constructor from JiraClient::Base

Instance Attribute Details

#assigneeObject (readonly)

Returns the value of attribute assignee.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def assignee
  @assignee
end

#commentObject (readonly) Also known as: comments

Returns the value of attribute comment.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def comment
  @comment
end

#descriptionObject (readonly)

Returns the value of attribute description.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def description
  @description
end

#issuetypeObject (readonly)

Returns the value of attribute issuetype.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def issuetype
  @issuetype
end

#keyObject (readonly)

Returns the value of attribute key.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def key
  @key
end

#projectObject (readonly)

Returns the value of attribute project.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def project
  @project
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def status
  @status
end

#subtasksObject (readonly)

Returns the value of attribute subtasks.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def subtasks
  @subtasks
end

#summaryObject (readonly)

Returns the value of attribute summary.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def summary
  @summary
end

#timetrackingObject (readonly)

Returns the value of attribute timetracking.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def timetracking
  @timetracking
end

#worklogObject (readonly)

Returns the value of attribute worklog.



9
10
11
# File 'lib/jira_client/issue.rb', line 9

def worklog
  @worklog
end

Class Method Details

.from_response(params) ⇒ Object



25
26
27
28
29
# File 'lib/jira_client/issue.rb', line 25

def from_response(params)
  # Make values nested in the :fields key top-level values
  params.merge!(params[:fields]).delete :fields if params.has_key? :fields
  super(params)
end

Instance Method Details

#to_sObject



33
34
35
# File 'lib/jira_client/issue.rb', line 33

def to_s
  "#{key} #{summary}"
end