Sha256: 4740c5fafc466ca409b5fe2eda206ab41108fc5afe1b3816d43159e236b47b9e

Contents?: true

Size: 603 Bytes

Versions: 143

Compression:

Stored size: 603 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"]
        @week = Sportradar::Api::Nfl::Week.new data["week"] if data["week"]
        @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

143 entries across 143 versions & 1 rubygems

Version Path
sportradar-api-0.10.35 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.34 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.33 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.32 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.31 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.30 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.29 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.28 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.27 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.26 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.25 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.24 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.23 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.22 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.21 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.20 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.19 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.18 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.17 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.16 lib/sportradar/api/nfl/summary.rb