lib/sportradar/api/baseball/mlb.rb in sportradar-api-0.12.3 vs lib/sportradar/api/baseball/mlb.rb in sportradar-api-0.13.0
- old
+ new
@@ -88,10 +88,10 @@
# api stuff
def api
- @api || Sportradar::Api::Baseball::Mlb::Api.new
+ @api ||= Sportradar::Api::Baseball::Mlb::Api.new
end
def default_year
Date.today.year
end