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.8 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.7 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.6 lib/sportradar/api/nfl/situation.rb
sportradar-api-0.1.5 lib/sportradar/api/nfl/situation.rb