lib/sportradar/api/soccer/match.rb in sportradar-api-0.13.21 vs lib/sportradar/api/soccer/match.rb in sportradar-api-0.13.22
- old
+ new
@@ -155,11 +155,11 @@
'closed' == status
end
def clock_display
return unless @match_time
- if @match_time == '45:00' || @match_time == '90:00' # stoppage time
- @match_time.split(':').first + ?'
+ if @stoppage_time && (@match_time == '45:00' || @match_time == '90:00') # stoppage time
+ @match_time.split(':').first + ?' + '+' + @stoppage_time.split(':').first
else
@match_time.split(':').first + ?'
end
end
alias :clock :clock_display