Module: NotificationHub::Channels::Sms
- Defined in:
- lib/notification_hub/channels/sms.rb,
lib/notification_hub/channels/sms/aws.rb,
lib/notification_hub/channels/sms/base.rb
Defined Under Namespace
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/sms.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/sms.rb', line 9 def (event_code, data, , gateway = nil) gateway ||= default_gateway "NotificationHub::Channels::Sms::#{default_gateway.to_s.camelize}".constantize.(event_code, data, ) end |