lib/sportradar/api/nfl/situation.rb in sportradar-api-0.1.30 vs lib/sportradar/api/nfl/situation.rb in sportradar-api-0.1.31

- old
+ new

@@ -1,16 +1,17 @@ module Sportradar module Api class Nfl::Situation < Data - attr_accessor :response, :clock, :down, :yfd, :possession, :location + attr_accessor :response, :clock, :down, :yfd, :possession, :location, :team_id def initialize(data) @response = data @clock = data["clock"] @down = data["down"] @yfd = data["yfd"] @possession = OpenStruct.new data["possession"] if data["possession"] @location = OpenStruct.new data["location"] if data["location"] + @team_id = possession.id if possession end end end end