Sha256: dfd7a743a3be37df909a9bcf229dcb5fb2477c1b6915958c1c2b320863e6b4db

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

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

module SpyAlleyApplication
  module Results
    module Nodes
      class NewSpyIdentityChosenNode < Dry::Struct
        @@can_handle_move_option = ::Types.Interface(:handle_new_spy_identity_chosen)
        attribute :nationality, SpyAlleyApplication::Types::Nationality

        def accept(visitor, **args)
          @can_handle_new_spy_identity_chosen.(visitor)
          visitor.handle_new_spy_identity_chosen(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/results/nodes/new_spy_identity_chosen_node.rb
spy_alley_application-0.3.1 lib/spy_alley_application/results/nodes/new_spy_identity_chosen_node.rb
spy_alley_application-0.3.0 lib/spy_alley_application/results/nodes/new_spy_identity_chosen_node.rb