Sha256: 202fe9a0899ef61eb7867d3008657f3e52f7aa0da33d86235301e70ed090e598
Contents?: true
Size: 432 Bytes
Versions: 14
Compression:
Stored size: 432 Bytes
Contents
module SportsDataApi module Nfl 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
14 entries across 14 versions & 1 rubygems