Sha256: 7dd38a79a9daceec2583c33a08e6ead25045d96e3978c84709fe1cb7d813569b
Contents?: true
Size: 497 Bytes
Versions: 8
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module AhlScraper class PlayoffBracket < Resource def initialize(raw_data, opts = {}) super(raw_data, opts) end def teams @teams ||= @raw_data[:teams].map { |_team_id, team_data| PlayoffBrackets::Team.new(team_data) } end def rounds @rounds ||= @raw_data[:rounds].map { |round| PlayoffBrackets::Round.new(round, { bracket_data: @raw_data }) } end def logo_url @logo_url ||= @raw_data[:logo] end end end
Version data entries
8 entries across 8 versions & 1 rubygems