Class: Gaskit::Service

Inherits:
Operation show all
Defined in:
lib/gaskit/boot/service.rb

Overview

A base class for service-style operations.

This uses the ‘:service` contract, which must be registered with Registry.

Examples:

class MyService < Service
  def call
    "done"
  end
end

Instance Attribute Summary

Attributes inherited from Operation

#context, #logger, #raise_on_failure

Method Summary

Methods inherited from Operation

call, #call, call!, error, errors_registry, #exit, #initialize, #raise_on_failure?, result_class, use_contract

Methods included from Hookable

#apply_after_hooks, #apply_around_hooks, #apply_before_hooks, #apply_hooks, included

Constructor Details

This class inherits a constructor from Gaskit::Operation