Sha256: 524a3b2d5eaeb86faa3903b5d32ef9119d5877afab2de1197b8100e7ae0277df

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

module Backgrounded
  attr_reader :delegate, :options
  class Proxy
    def initialize(delegate, options={})
      @delegate = delegate
      @options = options || {}
    end

    def method_missing(method_name, *args)
      Backgrounded.logger.debug("Requesting #{Backgrounded.handler} backgrounded method: #{method_name} for instance #{@delegate} with options: #{@options}")
      Backgrounded.handler.request(@delegate, method_name, args, @options)
      nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backgrounded-2.1.0 lib/backgrounded/proxy.rb