lib/ahl_scraper/resources/games/info.rb in ahl_scraper-0.2.0 vs lib/ahl_scraper/resources/games/info.rb in ahl_scraper-0.3.0
- old
+ new
@@ -62,10 +62,10 @@
def public_notes
@public_notes ||= @raw_data[:publicNotes]
end
def status
- @status ||= @raw_data[:status]
+ @status ||= @raw_data[:started] == "0" ? @raw_data[:status].strip : @raw_data[:status]
end
def season_id
@season_id ||= @raw_data[:seasonId].to_i
end