Sha256: 58e307e222604905546d754b2143ec492ef7029fb04aa0b3177a5069606b87c3
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
module Sportradar module Api class Nfl::Summary < Data attr_accessor :response, :season, :week, :venue, :home, :away def initialize(data) @response = data @season = Sportradar::Api::Nfl::Season.new data["season"] if data["season"] @weak = Sportradar::Api::Nfl::weak.new data["weak"] if data["weak"] @venue = Sportradar::Api::Nfl::Venue.new data["venue"] if data["venue"] @home = Sportradar::Api::Nfl::Team.new data["home"] if data["home"] @away = Sportradar::Api::Nfl::Team.new data["away"] if data["away"] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sportradar-api-0.1.5 | lib/sportradar/api/nfl/summary.rb |