class Wrappi::AsyncHandler
Attributes
endpoint[R]
options[R]
Public Class Methods
call(*args)
click to toggle source
# File lib/wrappi/async_handler.rb, line 3 def self.call(*args) new(*args).call end
new(endpoint, options)
click to toggle source
# File lib/wrappi/async_handler.rb, line 7 def initialize(endpoint, options) @endpoint = endpoint @options = options end
Public Instance Methods
call()
click to toggle source
# File lib/wrappi/async_handler.rb, line 12 def call AsyncJob.set((options[:set] || {})) .perform_later(endpoint.class.to_s, { params: endpoint.input_params, options: endpoint.options }, options) end