Class: RTPush::TwilioAdapter
- Inherits:
-
BaseAdapter
- Object
- BaseAdapter
- RTPush::TwilioAdapter
- Defined in:
- lib/rtpush/adapters/twilio_adapter.rb
Instance Attribute Summary
Attributes inherited from BaseAdapter
Class Method Summary collapse
Methods inherited from BaseAdapter
#exist?, #initialize, #valid?, validates_existence_of, validates_presence_of
Constructor Details
This class inherits a constructor from RTPush::BaseAdapter
Class Method Details
.push(message) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/rtpush/adapters/twilio_adapter.rb', line 4 def push() client..create( from: ENV['TWILIO_FROM_NUMBER'], to: ENV['TWILIO_TO_NUMBER'], body: ) rescue StandardError => e raise Errors::AdapterError, e. end |