Class: Backlog::Object::Issue
- Inherits:
-
Object
- Object
- Backlog::Object::Issue
- Defined in:
- lib/backlog/object.rb
Instance Attribute Summary collapse
-
#actual_hours ⇒ Object
readonly
Returns the value of attribute actual_hours.
-
#assigner ⇒ Object
readonly
Returns the value of attribute assigner.
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#created_on ⇒ Object
readonly
Returns the value of attribute created_on.
-
#created_user ⇒ Object
readonly
Returns the value of attribute created_user.
-
#custom_fields ⇒ Object
readonly
Returns the value of attribute custom_fields.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#due_date ⇒ Object
readonly
Returns the value of attribute due_date.
-
#estimated_hours ⇒ Object
readonly
Returns the value of attribute estimated_hours.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#issue_type ⇒ Object
readonly
Returns the value of attribute issue_type.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#milestones ⇒ Object
readonly
Returns the value of attribute milestones.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
-
#updated_on ⇒ Object
readonly
Returns the value of attribute updated_on.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#versions ⇒ Object
readonly
Returns the value of attribute versions.
Instance Method Summary collapse
-
#initialize(issue) ⇒ Issue
constructor
A new instance of Issue.
Constructor Details
#initialize(issue) ⇒ Issue
Returns a new instance of Issue.
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/backlog/object.rb', line 80 def initialize(issue) @id = issue['id'] @key = issue['key'] @summary = issue['summary'] @description = issue['description'] @url = issue['url'] @due_date = issue['due_date'] @start_date = issue['start_date'], @estimated_hours = issue['estimated_hours'] @actual_hours = issue['actual_hours'] @issue_type = issue['issue_type'] ? IssueType.new(issue['issue_type']) : nil @priority = issue['priority'] ? Priority.new(issue['priority']) : nil @resolution = issue['resolution'] ? Resolution.new(issue['resolution']) : nil @status = issue['status'] ? Status.new(issue['status']) : nil @components = issue['components'] ? issue['components'].map {|x| Component.new(x) } : [] @versions = issue['versions'] ? issue['versions'].map {|x| Version.new(x) } : [] @milestones = issue['milestone'] ? issue['milestones'].map {|x| Milestone.new(x)} : [] @created_user = issue['created_user'] ? User.new(issue['created_user']) : nil @assigner = issue['assigner'] ? User.new(issue['assigner']) : nil @created_on = issue['created_on'] @updated_on = issue['updated_on'] @custom_fields = issue['custom_fields'] end |
Instance Attribute Details
#actual_hours ⇒ Object (readonly)
Returns the value of attribute actual_hours.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def actual_hours @actual_hours end |
#assigner ⇒ Object (readonly)
Returns the value of attribute assigner.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def assigner @assigner end |
#components ⇒ Object (readonly)
Returns the value of attribute components.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def components @components end |
#created_on ⇒ Object (readonly)
Returns the value of attribute created_on.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def created_on @created_on end |
#created_user ⇒ Object (readonly)
Returns the value of attribute created_user.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def created_user @created_user end |
#custom_fields ⇒ Object (readonly)
Returns the value of attribute custom_fields.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def custom_fields @custom_fields end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def description @description end |
#due_date ⇒ Object (readonly)
Returns the value of attribute due_date.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def due_date @due_date end |
#estimated_hours ⇒ Object (readonly)
Returns the value of attribute estimated_hours.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def estimated_hours @estimated_hours end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def id @id end |
#issue_type ⇒ Object (readonly)
Returns the value of attribute issue_type.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def issue_type @issue_type end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def key @key end |
#milestones ⇒ Object (readonly)
Returns the value of attribute milestones.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def milestones @milestones end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def priority @priority end |
#resolution ⇒ Object (readonly)
Returns the value of attribute resolution.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def resolution @resolution end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def start_date @start_date end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def status @status end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def summary @summary end |
#updated_on ⇒ Object (readonly)
Returns the value of attribute updated_on.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def updated_on @updated_on end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def url @url end |
#versions ⇒ Object (readonly)
Returns the value of attribute versions.
103 104 105 |
# File 'lib/backlog/object.rb', line 103 def versions @versions end |