Sha256: e22ffdb74b1f6e6ce19d7688fe785b22a50e2e8ead116ce49e2a877930d18ba7

Contents?: true

Size: 612 Bytes

Versions: 3

Compression:

Stored size: 612 Bytes

Contents

# frozen string literal: true

require 'dry-struct'
require 'spy_alley_application/types/coercible_integer_one_to_six'

module SpyAlleyApplication
  module Models
    module GameState
      class StartOfTurn < Dry::Struct
        @@can_handle_start_of_turn = ::Types.Interface(:handle_start_of_turn)

        attribute :name, ::Types::Value('start_of_turn')
        attribute :seat, SpyAlleyApplication::Types::CoercibleIntegerOneToSix

        def accept(visitor, **args)
          @@can_handle_start_of_turn.(visitor)
          visitor.handle_start_of_turn(self, args)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spy_alley_application-0.3.2 lib/spy_alley_application/models/game_state/start_of_turn.rb
spy_alley_application-0.3.1 lib/spy_alley_application/models/game_state/start_of_turn.rb
spy_alley_application-0.3.0 lib/spy_alley_application/models/game_state/start_of_turn.rb