Class: Dev::Jira::History
- Defined in:
- lib/firespring_dev_commands/jira/history.rb
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
8 9 10 11 12 13 14 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 8 def initialize(data) @data = data @id = data['id'] = data['author'] @items = data['items'] @created = Time.parse(data['created']) end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
6 7 8 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 6 def end |
#created ⇒ Object
Returns the value of attribute created.
6 7 8 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 6 def created @created end |
#date ⇒ Object
Returns the value of attribute date.
6 7 8 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 6 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 6 def id @id end |
#items ⇒ Object
Returns the value of attribute items.
6 7 8 |
# File 'lib/firespring_dev_commands/jira/history.rb', line 6 def items @items end |