Sha256: 35b6a1a0243455ed5d6e1288f2e44f295c96d39701314e0862c3f2371c041ce6
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true require_relative 'event' module Basketball module Drafting class PickEvent < Event attr_reader :player def initialize(id:, team:, player:, pick:, round:, round_pick:) super(id:, team:, pick:, round:, round_pick:) raise ArgumentError, 'player required' unless player @player = player freeze end def to_s "#{player} picked #{super}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basketball-0.0.4 | lib/basketball/drafting/pick_event.rb |
basketball-0.0.3 | lib/basketball/drafting/pick_event.rb |
basketball-0.0.2 | lib/basketball/drafting/pick_event.rb |