class AhlScraper::PlayoffBrackets::Round

Public Instance Methods

id() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/round.rb, line 6
def id
  @id ||= @raw_data[:round].to_i
end
name() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/round.rb, line 10
def name
  @name ||= @raw_data[:round_name]
end
round_type_id() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/round.rb, line 18
def round_type_id
  @round_type_id ||= @raw_data[:round_type_id].to_i
end
round_type_name() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/round.rb, line 22
def round_type_name
  @round_type_name ||= @raw_data[:round_type_name]
end
season_id() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/round.rb, line 14
def season_id
  @season_id ||= @raw_data[:season_id].to_i
end
series() click to toggle source
# File lib/ahl_scraper/resources/playoff_brackets/round.rb, line 26
def series
  @series ||= @raw_data[:matchups].map { |series| Series.new(series) }
end