lib/sportradar/api/basketball/plays/base.rb in sportradar-api-0.12.3 vs lib/sportradar/api/basketball/plays/base.rb in sportradar-api-0.13.0
- old
+ new
@@ -78,10 +78,10 @@
end
def update(data, **opts)
@event_type = data['event_type'] # "lineupchange",
@clock = data['clock'] # "12:00",
- @updated = data['updated'] # "2016-10-26T00:07:52+00:00",
+ @updated = Time.parse(data['updated']) if data['updated'] # "2016-10-26T00:07:52+00:00",
@description = data['description'] # "Cavaliers lineup change (Richard Jefferson, Kyrie Irving, Mike Dunleavy, Channing Frye, LeBron James)",
@attribution = data['attribution'] # {"name"=>"Cavaliers", "market"=>"Cleveland", "id"=>"583ec773-fb46-11e1-82cb-f4ce4684ea4c", "team_basket"=>"left"},
@team_id = data.dig('attribution', "id")
@location = data['location'] # {"coord_x"=>"0", "coord_y"=>"0"},
@possession = data['possession'] # {"name"=>"Knicks", "market"=>"New York", "id"=>"583ec70e-fb46-11e1-82cb-f4ce4684ea4c"},