Skip to content

Commit

Permalink
Merge pull request #59 from giginet/modify-field-name
Browse files Browse the repository at this point in the history
Modify field name of topIssue API
  • Loading branch information
etolstoy authored Oct 11, 2018
2 parents 89945e0 + f51255c commit 0608cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fabricio/models/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def initialize(attributes)
@createdAt = attributes['createdAt']
@type = attributes['type']
@state = attributes['state']
@occurrenceCount = attributes['_occurrenceCount2I980d"']
@impactedDevices = attributes['_impactedDevices2oATOx']
@occurrenceCount = attributes['_occurrenceCount2I980d"'] || attributes['occurrenceCount']
@impactedDevices = attributes['_impactedDevices2oATOx'] || attributes['impactedDevices']
@json = attributes
end
end
Expand Down

0 comments on commit 0608cb9

Please sign in to comment.