class SmsLayer
For compatibility with smster rails gem.
Public Instance Methods
send_sms()
click to toggle source
# File lib/smster/sms_layer.rb, line 4 def send_sms send_to_provider status_name = api_message_id ? :sent : :failed self.status = STATUSES[status_name] self end
Private Instance Methods
config()
click to toggle source
# File lib/smster/sms_layer.rb, line 22 def config Smster.configuration end
send_to_provider()
click to toggle source
# File lib/smster/sms_layer.rb, line 15 def send_to_provider modify_params response = send_request assign_attrs_by(response) end