Class: BabySMS::Adapters::SignalwireAdapter::WebHook
- Defined in:
- lib/babysms/adapters/signalwire_adapter.rb
Instance Attribute Summary
Attributes inherited from WebHook
Instance Method Summary collapse
Methods inherited from WebHook
#end_point, #initialize, #mount_point
Constructor Details
This class inherits a constructor from BabySMS::WebHook
Instance Method Details
#process(app:, report:) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/babysms/adapters/signalwire_adapter.rb', line 26 def process(app:, report:) # Of note: NumMedia, and MediaContentType0, MediaUrl0 = BabySMS::Message.new(from: app.params['from'], to: app.params['to'], contents: app.params['body'], uuid: app.params['id']) report.() [200, { 'Content-Type' => 'application/xml' }, '<Response></Response>'] end |