Sha256: a2ed6ce90f981d9d8efafa26cf9cd2432665965a2f992ade80b932de5fb72ff9

Contents?: true

Size: 392 Bytes

Versions: 16

Compression:

Stored size: 392 Bytes

Contents

module Sportradar
  module Api
    class Nfl::Week < Data
      attr_accessor :response, :id, :sequence, :title, :games


      def initialize(data)
        @response = data
        @id = data["id"]
        @sequence = data["sequence"]
        @title = data["title"]
        @games = data["game"].map {|game| Sportradar::Api::Nfl::Game.new game } if data["game"]
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sportradar-api-0.1.22 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.21 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.19 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.18 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.17 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.16 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.15 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.14 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.13 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.12 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.11 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.10 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.8 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.7 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.6 lib/sportradar/api/nfl/week.rb
sportradar-api-0.1.5 lib/sportradar/api/nfl/week.rb