Class: Dev::Jira::History

Inherits:
Object show all
Defined in:
lib/firespring_dev_commands/jira/history.rb

Overview

Class contains history data for jira objects

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authorObject

Returns the value of attribute author.



7
8
9
# File 'lib/firespring_dev_commands/jira/history.rb', line 7

def author
  @author
end

#createdObject

Returns the value of attribute created.



7
8
9
# File 'lib/firespring_dev_commands/jira/history.rb', line 7

def created
  @created
end

#dateObject

Returns the value of attribute date.



7
8
9
# File 'lib/firespring_dev_commands/jira/history.rb', line 7

def date
  @date
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/firespring_dev_commands/jira/history.rb', line 7

def id
  @id
end

#itemsObject

Returns the value of attribute items.



7
8
9
# File 'lib/firespring_dev_commands/jira/history.rb', line 7

def items
  @items
end