Class: Dev::Jira::Histories

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

Class Method Summary collapse

Class Method Details

.populate(data) ⇒ Object



4
5
6
7
8
# File 'lib/firespring_dev_commands/jira/histories.rb', line 4

def self.populate(data)
  return nil unless data.attrs.key?('changelog')

  data.changelog['histories'].map { |it| Jira::History.new(it) }
end