Class: ActionShortMessage::SMSProviders::Test

Inherits:
Base
  • Object
show all
Defined in:
lib/action_short_message/sms_providers/test.rb

Instance Method Summary collapse

Methods inherited from Base

#senders

Constructor Details

#initialize(params = {}) ⇒ Test

Returns a new instance of Test.



4
5
6
# File 'lib/action_short_message/sms_providers/test.rb', line 4

def initialize(params = {})
  super(params)
end

Instance Method Details

#send_message(message, params = {}) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/action_short_message/sms_providers/test.rb', line 8

def send_message(message, params = {})
  puts "SMS TEST: send short message to #{params[:to]}, context:"
  puts 'options'
  puts params
  puts message
  puts 'Completed!'
  super(message, params)
end