Class: Sms::Method::Kannel

Inherits:
Object
  • Object
show all
Defined in:
lib/sms/method/kannel.rb

Instance Method Summary collapse

Instance Method Details

#deliver!(sms) ⇒ Object



4
5
6
7
8
9
# File 'lib/sms/method/kannel.rb', line 4

def deliver!(sms)
  args = {}
  args[:from] = sms.from if sms.from
  sms = ::Kannel::Sms.new(sms.to, sms.text, args)
  sms.send!
end