class Dallal::Notifications::SmsNotification

Attributes

body[R]
from[R]
to[R]

Public Class Methods

new(notification, target) click to toggle source
# File lib/dallal/notifications/sms_notification.rb, line 9
def initialize(notification, target)
  super(notification, target)
  @from = Dallal.configuration.sms_from
end

Public Instance Methods

message(message) click to toggle source
# File lib/dallal/notifications/sms_notification.rb, line 18
def message message
  @body = message
end
notifier() click to toggle source
# File lib/dallal/notifications/sms_notification.rb, line 30
def notifier
  Dallal::Notifiers::SmsNotifier.new(self)
end
recipient(recipient_number) click to toggle source
# File lib/dallal/notifications/sms_notification.rb, line 22
def recipient recipient_number
  @to = recipient_number
end
template(template) click to toggle source
# File lib/dallal/notifications/sms_notification.rb, line 14
def template template
  raise NotImplementedError
end