Class: Textris::Delivery::Nexmo

Inherits:
Base
  • Object
show all
Defined in:
lib/textris/delivery/nexmo.rb

Instance Attribute Summary

Attributes inherited from Base

#message

Instance Method Summary collapse

Methods inherited from Base

#deliver_to_all, #initialize

Constructor Details

This class inherits a constructor from Textris::Delivery::Base

Instance Method Details

#deliver(phone) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/textris/delivery/nexmo.rb', line 4

def deliver(phone)
  client.send_message(
    from: sender_id,
    to:   phone,
    text: message.content
  )
end