lib/sportradar/api/soccer/summary.rb in sportradar-api-0.1.4 vs lib/sportradar/api/soccer/summary.rb in sportradar-api-0.1.5
- old
+ new
@@ -1,15 +1,14 @@
module Sportradar
module Api
- class Soccer::Summary
- attr_accessor :response, :updated_at, :matches
+ class Soccer::Summary < Data
+ attr_accessor :response, :matches
def initialize(data)
- @updated_at = data["summary"]["generated"]
@response = data
set_matches
-
end
+
private
def set_matches
if response["summary"]["matches"]["match"]
if response["summary"]["matches"]["match"].is_a?(Array)