class Stealth::Services::BaseMessageHandler
Attributes
headers[R]
params[R]
Public Class Methods
new(params:, headers:)
click to toggle source
# File lib/stealth/services/base_message_handler.rb, line 10 def initialize(params:, headers:) @params = params @headers = headers end
Public Instance Methods
coordinate()
click to toggle source
Should respond with a Rack response (github.com/sinatra/sinatra#return-values)
# File lib/stealth/services/base_message_handler.rb, line 16 def coordinate raise(Stealth::Errors::ServiceImpaired, "Service request handler does not implement 'process'") end
process()
click to toggle source
After coordinate responds to the service, an optional async job may be fired that will continue the work via this method
# File lib/stealth/services/base_message_handler.rb, line 22 def process end