lib/sportradar/api/soccer/schedule.rb in sportradar-api-0.1.4 vs lib/sportradar/api/soccer/schedule.rb in sportradar-api-0.1.5
- old
+ new
@@ -1,13 +1,12 @@
module Sportradar
module Api
- class Soccer::Schedule
- attr_accessor :response, :updated_at, :matches
+ class Soccer::Schedule < Data
+ attr_accessor :response, :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
+ @matches = data["schedule"]["matches"]["match"].map {|x| Sportradar::Api::Soccer::Match.new x } if data["schedule"]["matches"]["match"]
end
end
end
end