Sha256: 46f92d8b14f562faa27b30ed49c21fad30ac0acc684b00de0dafe1557f9225b1
Contents?: true
Size: 435 Bytes
Versions: 18
Compression:
Stored size: 435 Bytes
Contents
module SportsDataApi module Ncaafb class Actions class << self def build_actions(actions) actions.map do |action| map_by_type(action) end end def map_by_type(action) case action["type"] when "event" EventAction.new(action) when "play" PlayAction.new(action) end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems