class AhlScraper::PlayoffBrackets::Team

Public Instance Methods

abbreviation() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 14
def abbreviation
  @abbreviation ||= @raw_data[:team_code]
end
city() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 10
def city
  @city ||= @raw_data[:city]
end
conference_id() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 30
def conference_id
  @conference_id ||= @raw_data[:conf_id].to_i
end
division() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 26
def division
  @division ||= @raw_data[:division_long_name]
end
full_name() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 18
def full_name
  @full_name ||= @raw_data[:name]
end
id() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 6
def id
  @id ||= @raw_data[:id].to_i
end
logo_url() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 34
def logo_url
  @logo_url ||= @raw_data[:logo]
end
name() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/team.rb, line 22
def name
  @name ||= @raw_data[:name].sub(city, "").strip
end