Module: NotificationHub::Channels::Email
- Defined in:
- lib/notification_hub/channels/email.rb,
lib/notification_hub/channels/email/base.rb,
lib/notification_hub/channels/email/action_mailer.rb
Defined Under Namespace
Classes: ActionMailer, Base
Class Attribute Summary collapse
-
.default_gateway ⇒ Object
Returns the value of attribute default_gateway.
Class Method Summary collapse
Class Attribute Details
.default_gateway ⇒ Object
Returns the value of attribute default_gateway.
7 8 9 |
# File 'lib/notification_hub/channels/email.rb', line 7 def default_gateway @default_gateway end |
Class Method Details
.send_message(event_code, data, options, gateway = nil) ⇒ Object
9 10 11 12 |
# File 'lib/notification_hub/channels/email.rb', line 9 def (event_code, data, , gateway = nil) gateway ||= default_gateway "NotificationHub::Channels::Email::#{gateway.to_s.camelize}".constantize.(event_code, data, ) end |