class AhlScraper::PlayoffBrackets::Game
Public Instance Methods
away_score()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 22 def away_score @away_score ||= @raw_data[:visiting_goal_count].to_i end
away_team()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 18 def away_team @away_team ||= @raw_data[:visiting_team].to_i end
date()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 30 def date @date ||= @raw_data[:date_time] end
home_score()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 14 def home_score @home_score ||= @raw_data[:home_goal_count].to_i end
home_team()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 10 def home_team @home_team ||= @raw_data[:home_team].to_i end
id()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 6 def id @id ||= @raw_data[:game_id].to_i end
if_necessary?()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 34 def if_necessary? @if_necessary ||= @raw_data[:if_necessary] == "1" end
notes()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 38 def notes @notes ||= @raw_data[:game_notes] end
status()
click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/game.rb, line 26 def status @status ||= @raw_data[:game_status] end