Sha256: 6bb81e2a53e0be92f6db76049cd2577cfe872ac275b4278e67d3984949fec9fb
Contents?: true
Size: 667 Bytes
Versions: 5
Compression:
Stored size: 667 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true module Stealth module Services class BaseMessageHandler attr_reader :params, :headers def initialize(params:, headers:) @params = params @headers = headers end # Should respond with a Rack response (https://github.com/sinatra/sinatra#return-values) def coordinate raise(Stealth::Errors::ServiceImpaired, "Service request handler does not implement 'process'.") end # After coordinate responds to the service, an optional async job # may be fired that will continue the work via this method def process end end end end
Version data entries
5 entries across 5 versions & 1 rubygems