Class: AhlScraper::Scoreboards::Team

Inherits:
Resource
  • Object
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

Constructor Details

This class inherits a constructor from AhlScraper::Resource

Instance Method Details

#abbreviationObject



10
11
12
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 10

def abbreviation
  @abbreviation ||= @raw_data[:abbreviation]
end

#audio_urlObject



34
35
36
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 34

def audio_url
  @audio_url ||= @raw_data[:audio_url]
end

#cityObject



14
15
16
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 14

def city
  @city ||= @raw_data[:city]
end

#divisionObject



26
27
28
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 26

def division
  @division ||= @raw_data[:division]
end

#full_nameObject



22
23
24
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 22

def full_name
  @full_name ||= @raw_data[:full_name]
end

#idObject



6
7
8
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 6

def id
  @id ||= @raw_data[:id].to_i
end

#logoObject



62
63
64
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 62

def 
  @logo ||= @raw_data[:logo]
end

#nameObject



18
19
20
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 18

def name
  @name ||= @raw_data[:name]
end

#ot_lossesObject



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_lossesObject



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

#scoreObject



30
31
32
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 30

def score
  @score ||= @raw_data[:score].to_i
end

#shootout_lossesObject



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_urlObject



38
39
40
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 38

def video_url
  @video_url ||= @raw_data[:video_url]
end

#webcasts_urlObject



42
43
44
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 42

def webcasts_url
  @webcasts_url ||= @raw_data[:webcasts_url]
end

#winsObject



46
47
48
# File 'lib/ahl_scraper/resources/scoreboards/team.rb', line 46

def wins
  @wins ||= @raw_data[:wins].to_i
end