Class: Nuntius::SmstoolsSmsProvider
- Inherits:
-
BaseProvider
- Object
- BaseProvider
- Nuntius::SmstoolsSmsProvider
- Defined in:
- app/providers/nuntius/smstools_sms_provider.rb
Overview
Send SMS messages using smstools.nl
Instance Attribute Summary
Attributes inherited from BaseProvider
Instance Method Summary collapse
Methods inherited from BaseProvider
all_settings, #callback, class_from_name, #initialize, #name, #refresh, setting_reader, states, transport
Constructor Details
This class inherits a constructor from Nuntius::BaseProvider
Instance Method Details
#deliver ⇒ Object
17 18 19 20 21 22 |
# File 'app/providers/nuntius/smstools_sms_provider.rb', line 17 def deliver response = client..create(sender: .from.present? ? .from : from, to: .to, message: .text) .provider_id = response.body. .status = translated_status(response.status) end |