Class: Signupto::Action::Sender
- Defined in:
- lib/signupto/action/sender.rb
Instance Method Summary collapse
-
#initialize(account, message) ⇒ Sender
constructor
A new instance of Sender.
Methods inherited from Base
Constructor Details
#initialize(account, message) ⇒ Sender
Returns a new instance of Sender.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/signupto/action/sender.rb', line 5 def initialize(account, ) if .is_a?(Message) and account.is_a?(Account) if super(account.apihash, account.customer_number) @message = payload = set_payload() run_action(payload, 'smpp_send') end else raise "You can only supply a Message object" end end |