Sha256: 8b2ec9a8ac05a67f5d85c385b291fd95892fbc7c83cf471277666ccdd2281678

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

module Sportradar
  module Api
    class Soccer::Schedule
      attr_accessor :response, :updated_at, :matches

      def initialize(data)
        @updated_at = data["schedule"]["generated"]
        @matches = data["schedule"]["matches"]["match"].map {|x| Sportradar::Api::Soccer::Match.new x } if data["schedule"]["matches"]["match"]
        @response = data
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sportradar-api-0.1.4 lib/sportradar/api/soccer/schedule.rb
sportradar-api-0.1.3 lib/sportradar/api/soccer/schedule.rb