module PerformLater::Delegation

Public Instance Methods

perform(method, *args) click to toggle source

receive the call from the asyncronous client with the method we have setup to call and the args to be passed to the deserialization hook

# File lib/perform_later/delegation.rb, line 6
def perform(method, *args)
  config = perform_later_configs[method] || {}
  call_after_deserialize(config[:after_deserialize], *args)

  self.send method
end

Private Instance Methods

call_after_deserialize(call, *args) click to toggle source
# File lib/perform_later/delegation.rb, line 15
def call_after_deserialize(call, *args)
  case call
  when Symbol
    self.send(call, *args)
  end
end