Class: Dev::Jira::History
- Defined in:
- lib/firespring_dev_commands/jira/history.rb
Overview
Class contains history data for jira objects
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#created ⇒ Object
Returns the value of attribute created.
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#items ⇒ Object
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(data) ⇒ History
constructor
A new instance of History.
Constructor Details
#initialize(data) ⇒ History
Returns a new instance of History.
9 10 11 12 13 14 15 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 9 def initialize(data) @data = data @id = data['id'] @author = data['author'] @items = data['items'] @created = Time.parse(data['created']) end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
7 8 9 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 7 def @author end |
#created ⇒ Object
Returns the value of attribute created.
7 8 9 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 7 def created @created end |
#date ⇒ Object
Returns the value of attribute date.
7 8 9 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 7 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 7 def id @id end |
#items ⇒ Object
Returns the value of attribute items.
7 8 9 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 7 def items @items end |