lib/basketball/drafting/event.rb in basketball-0.0.5 vs lib/basketball/drafting/event.rb in basketball-0.0.6
- old
+ new
@@ -1,13 +1,13 @@
# frozen_string_literal: true
module Basketball
module Drafting
- class Event < Entity
- attr_reader :pick, :round, :round_pick, :front_office
+ class Event < ValueObject
+ attr_reader_value :pick, :round, :round_pick, :front_office
- def initialize(id:, front_office:, pick:, round:, round_pick:)
- super(id)
+ def initialize(front_office:, pick:, round:, round_pick:)
+ super()
raise ArgumentError, 'front_office required' unless front_office
@front_office = front_office
@pick = pick.to_i