Sha256: 975c69c9e58aef9f6bc2b878a3d1d1522f28308e112b8f55440de3d8be37f32a
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true module AhlScraper class PlayoffBracket < Resource def initialize(bracket_data) @bracket_data = bracket_data end def teams @teams ||= @bracket_data[:teams].map { |_team_id, team_data| PlayoffBrackets::Team.new(team_data) } end def rounds @rounds ||= @bracket_data[:rounds].map { |round| PlayoffBrackets::Round.new(round) } end def logo_url @logo_url ||= @bracket_data[:logo] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ahl_scraper-0.2.0 | lib/ahl_scraper/resources/playoff_bracket.rb |
ahl_scraper-0.1.1 | lib/ahl_scraper/resources/playoff_bracket.rb |