Class: AhlScraper::Scoreboards::Team
- Inherits:
-
Resource
- Object
- Resource
- AhlScraper::Scoreboards::Team
show all
- Defined in:
- lib/ahl_scraper/resources/scoreboards/team.rb
Instance Method Summary
collapse
Methods inherited from Resource
#[], #each, #initialize, #inspect, #keys, #to_json, #values
Instance Method Details
#abbreviation ⇒ Object
10
11
12
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 10
def abbreviation
@abbreviation ||= @raw_data[:abbreviation]
end
|
#audio_url ⇒ Object
34
35
36
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 34
def audio_url
@audio_url ||= @raw_data[:audio_url]
end
|
#city ⇒ Object
14
15
16
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 14
def city
@city ||= @raw_data[:city]
end
|
#division ⇒ Object
26
27
28
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 26
def division
@division ||= @raw_data[:division]
end
|
#full_name ⇒ Object
22
23
24
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 22
def full_name
@full_name ||= @raw_data[:full_name]
end
|
#id ⇒ Object
6
7
8
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 6
def id
@id ||= @raw_data[:id].to_i
end
|
#logo ⇒ Object
62
63
64
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 62
def logo
@logo ||= @raw_data[:logo]
end
|
#name ⇒ Object
18
19
20
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 18
def name
@name ||= @raw_data[:name]
end
|
#ot_losses ⇒ Object
54
55
56
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 54
def ot_losses
@ot_losses ||= @raw_data[:ot_losses].to_i
end
|
#regulation_losses ⇒ Object
50
51
52
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 50
def regulation_losses
@regulation_losses ||= @raw_data[:regulation_losses].to_i
end
|
#score ⇒ Object
30
31
32
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 30
def score
@score ||= @raw_data[:score].to_i
end
|
#shootout_losses ⇒ Object
58
59
60
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 58
def shootout_losses
@shootout_losses ||= @raw_data[:shootout_losses].to_i
end
|
#video_url ⇒ Object
38
39
40
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 38
def video_url
@video_url ||= @raw_data[:video_url]
end
|
#webcasts_url ⇒ Object
42
43
44
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 42
def webcasts_url
@webcasts_url ||= @raw_data[:webcasts_url]
end
|
#wins ⇒ Object
46
47
48
|
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 46
def wins
@wins ||= @raw_data[:wins].to_i
end
|