Class: Dev::Jira::History

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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']
  @author = 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 author
  @author
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