Sha256: 7ed86fe164a883ca67639930e9132a2dba9e1a3fecf4c05e4b39e9f1bad478b7

Contents?: true

Size: 705 Bytes

Versions: 55

Compression:

Stored size: 705 Bytes

Contents

module Sportradar
  module Api
    module Soccer
      class Venue < Data
        attr_reader :id, :name, :country_code, :country, :city, :capacity, :coordinates, :reference_id, :response

        def initialize(data)
          @response     = data
          @id           = data["id"]
          @name         = data["name"]
          @country_code = data["country_code"]
          @country      = data["country"] || data["country_name"]
          @city         = data["city"]    || data["city_name"]
          @capacity     = data["capacity"]
          @coordinates  = data["coordinates"] || data["map_coordinates"]
          @reference_id = data["reference_id"]
        end
      end

    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
sportradar-api-0.20.2 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.20.1 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.20.0 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.20.0.pre2 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.20.0.pre lib/sportradar/api/soccer/venue.rb
sportradar-api-0.19.6 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.19.5 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.19.4 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.19.3 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.19.2 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.19.1 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.19.0 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.18.1 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.18.0 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.17.6 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.17.5 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.17.5.pre lib/sportradar/api/soccer/venue.rb
sportradar-api-0.17.4 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.17.3 lib/sportradar/api/soccer/venue.rb
sportradar-api-0.17.2 lib/sportradar/api/soccer/venue.rb