lib/sportradar/api/soccer/venue.rb in sportradar-api-0.1.4 vs lib/sportradar/api/soccer/venue.rb in sportradar-api-0.1.5

- old
+ new

@@ -1,20 +1,20 @@ module Sportradar module Api - class Soccer::Venue + class Soccer::Venue < Data attr_accessor :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"] @city = data["city"] @capacity = data["capacity"] @coordinates = data["coordinates"] @reference_id = data["reference_id"] - @response = data end end end end