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