Sha256: 6e7dc537afde6b69c0503facce65769316e073f8c2b88b630137e701f68947bc

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 Bytes

Contents

module Sidekiq
  module Logstash
    class Configuration
      attr_accessor :custom_options, :filter_args

      def initialize
        @filter_args = []
      end

      # Added to ensure custom_options is a Proc
      def custom_options=(proc)
        raise ArgumentError, 'Argument must be a Proc.' unless proc.is_a?(Proc)
        @custom_options = proc
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-logstash-1.1.0 lib/sidekiq/logstash/configuration.rb
sidekiq-logstash-1.0.1 lib/sidekiq/logstash/configuration.rb
sidekiq-logstash-1.0.0 lib/sidekiq/logstash/configuration.rb
sidekiq-logstash-0.3.0 lib/sidekiq/logstash/configuration.rb
sidekiq-logstash-0.2.7 lib/sidekiq/logstash/configuration.rb
sidekiq-logstash-0.2.6 lib/sidekiq/logstash/configuration.rb