Class: Plainsend

Inherits:
Object
  • Object
show all
Defined in:
lib/smsruby/send.rb

Overview

The Plainsend class represent one of the strategys and will use the recieve instance of the context class to invoke the send function of the Connection Administrator and also for getting all option values previosly set in the context class

Instance Method Summary collapse

Instance Method Details

#send(context) ⇒ Object



129
130
131
# File 'lib/smsruby/send.rb', line 129

def send(context)
  context.adm.send(context.to_hash){|e| yield e if block_given?}
end