Sha256: 496bb3802ef3e38d0fdb75ecc2a8bc8f568b8dbae366e661b7df7ab17a985816
Contents?: true
Size: 583 Bytes
Versions: 18
Compression:
Stored size: 583 Bytes
Contents
module SportsDataApi module Ncaafb class Drive attr_reader :id, :clock, :type, :team, :actions def initialize(event_hash) @id = event_hash["id"] @clock = event_hash["clock"] @type = event_hash["type"] @team= event_hash["team"] @actions = Actions.build_actions(event_hash["actions"]) end def play_actions actions.select {|i| i.class == SportsDataApi::Nfl::PlayAction} end def event_actions actions.select {|i| i.class == SportsDataApi::Nfl::EventAction } end end end end
Version data entries
18 entries across 18 versions & 1 rubygems