lib/sportradar/api/baseball/pitch.rb in sportradar-api-0.12.3 vs lib/sportradar/api/baseball/pitch.rb in sportradar-api-0.13.0
- old
+ new
@@ -23,18 +23,23 @@
@outcome_id = data['outcome_id']
@outcome = self.class.pitch_outcome(@outcome_id)
end
@description = data['description'] if data['description']
@status = data['status'] if data['status']
+ @created_at = data['created_at'] if data['created_at']
parse_hit(data)
parse_runners(data['runners']) if data['runners']
parse_pitcher(data['pitcher']) if data['pitcher']
parse_flags(data['flags']) if data['flags']
parse_count(data['count']) if data['count']
parse_warming_up(data['warming_up']) if data['warming_up']
parse_fielders(data['fielders']) if data['fielders']
parse_errors(data['errors']) if data['errors']
+ end
+
+ def updated
+ @created_at
end
def pitches
@pitches_hash.values
end