Sha256: 5ca759c51e1a4d0809ab9ce4f77df5f2308517bf7cc12c62a3ec7416685fde07

Contents?: true

Size: 466 Bytes

Versions: 3

Compression:

Stored size: 466 Bytes

Contents

# frozen string literal: true

require 'dry-struct'

module SpyAlleyApplication
  module Models
    module AcquisitionMethod
      class ByFreeGift < Dry::Struct
        @@can_handle_by_free_gift = ::Types.Interface(:handle_by_free_gift)
        attribute :name, ::Types.Value('by_free_gift')

        def accept(visitor, **args)
          @can_handle_by_free_gift.(visitor)
          visitor.handle_by_free_gift(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/acquisition_method/by_free_gift.rb
spy_alley_application-0.3.1 lib/spy_alley_application/models/acquisition_method/by_free_gift.rb
spy_alley_application-0.3.0 lib/spy_alley_application/models/acquisition_method/by_free_gift.rb