Sha256: e4459abf8915d9653d21ac59c5961684cd9230219dca00176a99ea9e23c6ff67
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module AhlScraper module PlayoffBrackets class Round < Resource def id @id ||= @raw_data[:round].to_i end def name @name ||= @raw_data[:round_name] end def season_id @season_id ||= @raw_data[:season_id].to_i end def round_type_id @round_type_id ||= @raw_data[:round_type_id].to_i end def round_type_name @round_type_name ||= @raw_data[:round_type_name] end def series @series ||= @raw_data[:matchups].map { |series| Series.new(series) } end 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_brackets/round.rb |
ahl_scraper-0.1.1 | lib/ahl_scraper/resources/playoff_brackets/round.rb |