Sha256: 20b4e6941b940ba0ce07ec2095b8d150b5b49cd6232e2a2c9f583606846924a3
Contents?: true
Size: 750 Bytes
Versions: 3
Compression:
Stored size: 750 Bytes
Contents
# frozen string_literal: true require 'dry-struct' require 'spy_alley_application/types/board_space' require 'spy_alley_application/types/equipment_type' module SpyAlleyApplication module Models module BoardSpaces class BuyEquipment < Dry::Struct @@can_handle_buy_equipment = ::Types.Interface(:handle_buy_equipment) attribute :id, ::Types::Coercible::Integer attribute :next_space, SpyAlleyApplication::Types::BoardSpace attribute :equipment_type, SpyAlleyApplication::Types::EquipmentType def accept(visitor, **args) @@can_handle_buy_equipment.(visitor) visitor.handle_buy_equipment(self, args) end def in_spy_alley?;false;end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems