Sha256: 490efd6b2ee72a304a197e7f165a3b889d16f51d39f2c2feb6ad96d981473679
Contents?: true
Size: 619 Bytes
Versions: 3
Compression:
Stored size: 619 Bytes
Contents
# frozen string literal: true require 'dry-struct' module SpyAlleyApplication module Models module AcquisitionMethod class ByConfiscation < Dry::Struct @@can_handle_by_confiscation = ::Types.Interface(:handle_by_confiscation) attribute :name, ::Types.Value('by_confiscation') attribute :target_player_id, ::Types::Coercible::Integer attribute :amount_paid, ::Types::CoercibleNonnegativeInteger def accept(visitor, **args) @can_handle_by_confiscation.(visitor) visitor.handle_by_confiscation(self, args) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems