Sha256: dc0f65812b0f76fe59e31c5a09d2c56f0cdbe08f047e3dcf4f4751db20459860
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 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, { raw_data: @raw_data }) } end def logo_url @logo_url ||= @raw_data[:logo] end end end
Version data entries
3 entries across 3 versions & 1 rubygems