Sha256: 95536a833aca93dacfdd0b6a9ef2a4627f3e5f5084e021443c4d1560f180bf02

Contents?: true

Size: 727 Bytes

Versions: 14

Compression:

Stored size: 727 Bytes

Contents

module SportsDataApi
  module Nfl
    class PlayAction
      attr_reader :sequence, :id, :clock, :type, :summary, :updated, :side, :yard_line, :down, :yfd, :play_type, :details

      def initialize(quarter_hash)
        @sequence = quarter_hash["sequence"]
        @id = quarter_hash["id"]
        @clock = quarter_hash["clock"]
        @type = quarter_hash["type"]
        @summary = quarter_hash["summary"]
        @updated = quarter_hash["updated"]
        @side = quarter_hash["side"]
        @yard_line = quarter_hash["yard_line"]
        @play_type = quarter_hash["play_type"]
        @details = quarter_hash["details"]
        @down = quarter_hash["down"]
        @yfd = quarter_hash["yfd"]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sports_data_api-0.14.1 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.14.0 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.13.0 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.12.1 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.12.0 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.11.6 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.11.5 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.11.3 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.11.2 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.11.1 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.11.0 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.10.1 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.10.0 lib/sports_data_api/nfl/play_action.rb
sports_data_api-0.9.2 lib/sports_data_api/nfl/play_action.rb