Class: Dev::Jira::Parent
- Defined in:
- lib/firespring_dev_commands/jira/parent.rb
Overview
Contains information on the Jira parent issue
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(data) ⇒ Parent
constructor
A new instance of Parent.
-
#to_s ⇒ Object
Converts the jira parent object to a string representation.
Constructor Details
#initialize(data) ⇒ Parent
Returns a new instance of Parent.
7 8 9 10 11 |
# File 'lib/firespring_dev_commands/jira/parent.rb', line 7 def initialize(data) @data = data.parent @id = data.parent['key'] @title = data.parent['fields']['summary'] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/firespring_dev_commands/jira/parent.rb', line 5 def data @data end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/firespring_dev_commands/jira/parent.rb', line 5 def id @id end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/firespring_dev_commands/jira/parent.rb', line 5 def title @title end |
Instance Method Details
#to_s ⇒ Object
Converts the jira parent object to a string representation
14 15 16 |
# File 'lib/firespring_dev_commands/jira/parent.rb', line 14 def to_s "[#{id}] #{title}" end |