lib/sportradar/api/soccer/match.rb in sportradar-api-0.1.11 vs lib/sportradar/api/soccer/match.rb in sportradar-api-0.1.12
- old
+ new
@@ -6,10 +6,10 @@
def initialize(data)
@response = data
@id = data["id"]
@reference_id = data["reference_id"]
- @scheduled = Time.parse data["scheduled"]
+ @scheduled = Time.parse(data["scheduled"]) if data["scheduled"]
@scratched = data["scratched"] == "true"
@season_id = data["season_id"]
@status = data["status"]
@category = Sportradar::Api::Soccer::Category.new data["category"] if data["category"]
@coverage = OpenStruct.new data["coverage"]