Module: PerformLater::Delegation

Defined in:
lib/perform_later/delegation.rb

Instance Method Summary collapse

Instance Method Details

#perform(method, *args) ⇒ Object

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



6
7
8
9
10
11
# 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