Class: AhlScraper::Games::Info
Instance Method Summary
collapse
Methods inherited from Resource
#[], #each, #initialize, #inspect, #keys, #to_json, #values
Instance Method Details
#attendance ⇒ Object
26
27
28
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 26
def attendance
@attendance ||= @raw_data[:attendance].to_i
end
|
#date ⇒ Object
14
15
16
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 14
def date
@date ||= @raw_data[:date]
end
|
#datetime ⇒ Object
78
79
80
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 78
def datetime
@datetime ||= @raw_data[:GameDateISO8601]
end
|
#duration ⇒ Object
38
39
40
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 38
def duration
@duration ||= @raw_data[:duration]
end
|
#end_time ⇒ Object
34
35
36
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 34
def end_time
@end_time ||= @raw_data[:endTime]
end
|
#final ⇒ Object
58
59
60
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 58
def final
@final ||= @raw_data[:final] == "1"
end
|
#game_number ⇒ Object
18
19
20
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 18
def game_number
@game_number ||= @raw_data[:gameNumber].to_i
end
|
#game_report_url ⇒ Object
42
43
44
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 42
def game_report_url
@game_report_url ||= @raw_data[:gameReportUrl]
end
|
#htv_game_id ⇒ Object
74
75
76
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 74
def htv_game_id
@htv_game_id ||= @raw_data[:htvGameId]
end
|
#id ⇒ Object
6
7
8
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 6
def id
@id ||= @raw_data[:id]
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 10
def name
@name ||= @opts[:name]
end
|
#public_notes ⇒ Object
62
63
64
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 62
def public_notes
@public_notes ||= @raw_data[:publicNotes]
end
|
#season_id ⇒ Object
70
71
72
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 70
def season_id
@season_id ||= @raw_data[:seasonId].to_i
end
|
#start_time ⇒ Object
30
31
32
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 30
def start_time
@start_time ||= @raw_data[:startTime]
end
|
#started ⇒ Object
54
55
56
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 54
def started
@started ||= @raw_data[:started] == "1"
end
|
#status ⇒ Object
66
67
68
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 66
def status
@status ||= @raw_data[:started] == "0" ? @raw_data[:status].strip : @raw_data[:status]
end
|
#text_boxscore_url ⇒ Object
46
47
48
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 46
def text_boxscore_url
@text_boxscore_url ||= @raw_data[:textBoxscoreUrl]
end
|
#tickets_url ⇒ Object
50
51
52
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 50
def tickets_url
@tickets_url ||= @raw_data[:ticketsUrl]
end
|
#venue ⇒ Object
22
23
24
|
# File 'lib/ahl_scraper/resources/games/info.rb', line 22
def venue
@venue ||= @raw_data[:venue]
end
|