Sha256: f7306faaa3ba4f24dad62a75b7101aa928d5d8d2114d2fd0068d9466eef1a6a8
Contents?: true
Size: 666 Bytes
Versions: 35
Compression:
Stored size: 666 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
35 entries across 35 versions & 1 rubygems