Class: Sipity::Services::Notifier

Inherits:
Object
  • Object
show all
Defined in:
app/services/sipity/services/notifier.rb

Overview

The entry point into the notification (via email) subsystem.

Class Method Summary collapse

Class Method Details

.deliver(options = {}) ⇒ Object

Providing a singular end point for sending messages


6
7
8
9
10
11
# File 'app/services/sipity/services/notifier.rb', line 6

def self.deliver(options = {})
  @notification_name = options.fetch(:notification)
  @to = options.fetch(:to)
  @cc = options.fetch(:cc) { [] }
  @bcc = options.fetch(:bcc) { [] }
end