Sha256: 14070214a1f7c9fd23746c242ea9ab77ff735fe98ca40df93f1ae1373cd5edc1

Contents?: true

Size: 457 Bytes

Versions: 24

Compression:

Stored size: 457 Bytes

Contents

module Sportradar
  module Api
    class Nfl::Situation < Data
      attr_accessor :response, :clock, :down, :yfd, :possession, :location

      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"]
      end

    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sportradar-api-0.1.30 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.29 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.28 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.27 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.26 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.25 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.24 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.23 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.22 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.21 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.19 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.18 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.17 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.16 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.15 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.14 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.13 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.12 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.11 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.10 lib/sportradar/api/nfl/situation.rb