class AhlScraper::SkaterGameListItem
Public Class Methods
new(raw_data)
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 5 def initialize(raw_data) @raw_data = raw_data end
Public Instance Methods
assists()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 49 def assists @assists ||= @raw_data[:row][:assists].to_i end
date()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 17 def date @date ||= @raw_data[:row][:date_played] end
game_id()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 9 def game_id @game_id ||= @raw_data[:prop][:game][:gameLink].to_i end
game_name()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 13 def game_name @game_name ||= @raw_data[:row][:game] end
game_winning_goals()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 41 def game_winning_goals @game_winning_goals ||= @raw_data[:row][:gw].to_i end
goals()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 25 def goals @goals ||= @raw_data[:row][:goals].to_i end
goals_pp()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 29 def goals_pp @goals_pp ||= @raw_data[:row][:pp].to_i end
goals_sh()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 33 def goals_sh @goals_sh ||= @raw_data[:row][:sh].to_i end
penalty_minutes()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 61 def penalty_minutes @penalty_minutes ||= @raw_data[:row][:penalty_minutes].to_i end
plus_minus()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 45 def plus_minus @plus_minus ||= @raw_data[:row][:plusminus].to_i end
points()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 37 def points @points ||= @raw_data[:row][:points].to_i end
shootout_attempts()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 57 def shootout_attempts @shootout_attempts ||= @raw_data[:row][:shootout_attempts].to_i end
shootout_goals()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 53 def shootout_goals @shootout_goals ||= @raw_data[:row][:shootout_goals].to_i end
shots()
click to toggle source
# File lib/ahl_scraper/resources/skater_game_list_item.rb, line 21 def shots @shots ||= @raw_data[:row][:shots].to_i end