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
-
#call ⇒ Object
modify to suit in sub class.
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
#call ⇒ Object
modify to suit in sub class
45 46 47 |
# File 'lib/service_operation/service_notification.rb', line 45 def call context.response ||= notify end |