lib/sportradar/api/basketball/injury.rb in sportradar-api-0.10.0 vs lib/sportradar/api/basketball/injury.rb in sportradar-api-0.10.1

- old
+ new

@@ -8,15 +8,15 @@ @response = data update(data, **opts) end def update(data, **opts) - @id = data.dig(0, 'id') - @comment = data.dig(0, 'comment') - @descripton = data.dig(0, 'desc') - @status = data.dig(0, 'status') - @start_date = data.dig(0, 'start_date') - @update_date = data.dig(0, 'update_date') + @id = data.last&.dig('id') + @comment = data.last&.dig('comment') + @descripton = data.last&.dig('desc') + @status = data.last&.dig('status') + @start_date = data.last&.dig('start_date') + @update_date = data.last&.dig('update_date') end def out? @status == 'Out' end