lib/sportradar/api/soccer/tournament.rb in sportradar-api-0.13.2 vs lib/sportradar/api/soccer/tournament.rb in sportradar-api-0.13.3
- old
+ new
@@ -50,9 +50,13 @@
if current_season&.year&.split('/')&.last
2000 + current_season.year.split('/').last.to_i
end
end
+ def current_season
+ seasons.detect(&:current?)
+ end
+
def standings(type = nil)
if type
@standings_hash[type]
else
@standings_hash.values