Sha256: 471b044f56f35fef1d34c55ccad1f61402a2e6909bafe70db9fa3fbcecd80672

Contents?: true

Size: 328 Bytes

Versions: 5

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

module CycloneLariat
  class Outbox
    module Configurable
      CONFIG_ATTRS = %i[dataset on_sending_error].freeze

      def config
        @config ||= Struct.new(*CONFIG_ATTRS).new
      end

      def configure
        yield(config) if block_given?
        config
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cyclone_lariat-1.0.0 lib/cyclone_lariat/plugins/outbox/configurable.rb
cyclone_lariat-1.0.0.rc9 lib/cyclone_lariat/plugins/outbox/configurable.rb
cyclone_lariat-1.0.0.rc8 lib/cyclone_lariat/plugins/outbox/configurable.rb
cyclone_lariat-1.0.0.rc7 lib/cyclone_lariat/plugins/outbox/configurable.rb
cyclone_lariat-1.0.0.rc6 lib/cyclone_lariat/plugins/outbox/configurable.rb