Module: Quebert::AsyncSender::Instance::InstanceMethods

Defined in:
lib/quebert/async_sender/instance.rb

Instance Method Summary collapse

Instance Method Details

#build_job(meth, *args) ⇒ Object

Build a job that uses the @__initialize_args



31
32
33
# File 'lib/quebert/async_sender/instance.rb', line 31

def build_job(meth, *args)
  InstanceJob.new(self.class.name, @__initialize_args, meth, *args)
end

#initialize_with_async_sender(*args) ⇒ Object

Remember the args used to initialize the class so that we can serialize them into a Job.



37
38
39
# File 'lib/quebert/async_sender/instance.rb', line 37

def initialize_with_async_sender(*args)
  initialize_without_async_sender(*(@__initialize_args = args))
end