Skip to content

Commit

Permalink
Modify field name of topIssue API
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Jul 17, 2018
1 parent 5535356 commit f51255c
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 f51255c

Please sign in to comment.