Class: Dev::Jira::Histories
- Defined in:
- lib/firespring_dev_commands/jira/histories.rb
Overview
Class which provides a helper method for converting the changelog data to history objects
Class Method Summary collapse
-
.populate(data) ⇒ Object
If changelog is present in the given data, return an array of history objects for each changelog entry.
Class Method Details
.populate(data) ⇒ Object
If changelog is present in the given data, return an array of history objects for each changelog entry
6 7 8 9 10 |
# File 'lib/firespring_dev_commands/jira/histories.rb', line 6 def self.populate(data) return nil unless data.attrs.key?('changelog') data.changelog['histories'].map { |it| Jira::History.new(it) } end |