Class: ActiveNotifier::NotifierAdapters::Abstract

Inherits:
ActiveAdapter::Abstract
  • Object
show all
Defined in:
lib/active_notifier/notifier_adapters/abstract.rb

Overview

Define the interface for ActiveNotifier::Notifier adapter

Instance Method Summary collapse

Instance Method Details

#notify(token, type, message, **options) ⇒ Object

This method is abstract.

Implement through setting a real adapter, like :dingtalk

Notify message

Raises:

See Also:

  • for usage

14
15
16
# File 'lib/active_notifier/notifier_adapters/abstract.rb', line 14

def notify(token, type, message, **options)
  adapter.notify(token, type, message, **options)
end