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

- old
+ new

@@ -7,10 +7,10 @@ @response = data @id = data["id"] @year = data["year"] @type = data["type"] @name = data["name"] - @team = Sportradar::Api::Nfl::Team.new data["team"] if data["team"] + @team = Sportradar::Api::Nfl::Team.new(data["team"]) if data["team"].is_a?(Hash) @injuries = data["injuries"]["team"].map {|team| Sportradar::Api::Nfl::Team.new team } if data["injuries"] && data["injuries"]["team"] set_weeks end private