Class: AhlScraper::PlayoffBrackets::Game
- Inherits:
-
Resource
- Object
- Resource
- AhlScraper::PlayoffBrackets::Game
show all
- Defined in:
- lib/ahl_scraper/resources/playoff_brackets/game.rb
Instance Method Summary
collapse
Methods inherited from Resource
#[], #each, #initialize, #inspect, #keys, #to_json, #values
Instance Method Details
#away_score ⇒ Object
22
23
24
|
# 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 ⇒ Object
18
19
20
|
# File 'lib/ahl_scraper/resources/playoff_brackets/game.rb', line 18
def away_team
@away_team ||= @raw_data[:visiting_team].to_i
end
|
#date ⇒ Object
30
31
32
|
# File 'lib/ahl_scraper/resources/playoff_brackets/game.rb', line 30
def date
@date ||= @raw_data[:date_time]
end
|
#home_score ⇒ Object
14
15
16
|
# 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 ⇒ Object
10
11
12
|
# File 'lib/ahl_scraper/resources/playoff_brackets/game.rb', line 10
def home_team
@home_team ||= @raw_data[:home_team].to_i
end
|
#id ⇒ Object
6
7
8
|
# File 'lib/ahl_scraper/resources/playoff_brackets/game.rb', line 6
def id
@id ||= @raw_data[:game_id].to_i
end
|
#if_necessary? ⇒ Boolean
34
35
36
|
# File 'lib/ahl_scraper/resources/playoff_brackets/game.rb', line 34
def if_necessary?
@if_necessary ||= @raw_data[:if_necessary] == "1"
end
|
#notes ⇒ Object
38
39
40
|
# File 'lib/ahl_scraper/resources/playoff_brackets/game.rb', line 38
def notes
@notes ||= @raw_data[:game_notes]
end
|
#status ⇒ Object
26
27
28
|
# File 'lib/ahl_scraper/resources/playoff_brackets/game.rb', line 26
def status
@status ||= @raw_data[:game_status]
end
|