Class: SmsOnRails::ServiceProviders::Dummy

Inherits:
Base
  • Object
show all
Defined in:
lib/sms_on_rails/service_providers/dummy.rb

Instance Method Summary collapse

Methods inherited from Base

#deliver, get_service_provider, human_name, max_characters, name, provider_by_id, provider_by_name, provider_list, provider_map, #requires_carrier?, #send_sms, #send_to_phone, set_default_service_provider

Instance Method Details

#pingObject



7
8
9
# File 'lib/sms_on_rails/service_providers/dummy.rb', line 7

def ping
  true
end

#send_message(phone_number, message, options = {}) ⇒ Object



11
12
13
14
# File 'lib/sms_on_rails/service_providers/dummy.rb', line 11

def send_message(phone_number, message, options={})
  response = {:unique_id => "#{$$}:#{Time.now.strftime('%Y%m%d%H%M%SZ')}.#{rand(1000)}"}
  response
end