class AhlScraper::Games::Period
Public Instance Methods
away_goals()
click to toggle source
# File lib/ahl_scraper/resources/games/period.rb, line 22 def away_goals @away_goals ||= @raw_data[:stats][:visitingGoals] end
away_sog()
click to toggle source
# File lib/ahl_scraper/resources/games/period.rb, line 26 def away_sog @away_sog ||= @raw_data[:stats][:visitingShots] end
home_goals()
click to toggle source
# File lib/ahl_scraper/resources/games/period.rb, line 14 def home_goals @home_goals ||= @raw_data[:stats][:homeGoals] end
home_sog()
click to toggle source
# File lib/ahl_scraper/resources/games/period.rb, line 18 def home_sog @home_sog ||= @raw_data[:stats][:homeShots] end
name()
click to toggle source
# File lib/ahl_scraper/resources/games/period.rb, line 10 def name @name ||= @raw_data[:info][:longName] end
number()
click to toggle source
# File lib/ahl_scraper/resources/games/period.rb, line 6 def number @number ||= @raw_data[:info][:id].to_i end