Module: ServiceOperation::ServiceNotification

Defined in:
lib/service_operation/service_notification.rb

Overview

Extensions to ServiceOperation::Base for sending notifications via the ServiceNotifications gem.

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VALID_SERVICE_NOTIFICATION_STATUSES =
[:created, :ok].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
# File 'lib/service_operation/service_notification.rb', line 8

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#callObject

modify to suit in sub class



45
46
47
# File 'lib/service_operation/service_notification.rb', line 45

def call
  context.response ||= notify
end