lib/sportradar/api/nfl.rb in sportradar-api-0.1.23 vs lib/sportradar/api/nfl.rb in sportradar-api-0.1.24

- old
+ new

@@ -63,9 +63,10 @@ # team_id = "97354895-8c77-4fd4-a860-32e62ea7382a" def seasonal_statistics(team_id, year = Date.today.year, season = "reg") raise Sportradar::Api::Error::InvalidLeague unless allowed_seasons.include? season response = get request_url("seasontd/#{ year }/#{ season }/teams/#{ team_id }/statistics") Sportradar::Api::Nfl::Season.new response["season"] if response.success? && response["season"] + # TODO: Object map team & player records - statistics end def team_profile(team_id) response = get request_url("teams/#{ team_id }/profile") Sportradar::Api::Nfl::Team.new response["team"] if response.success? && response["team"]