Class: SmsOnRails::ServiceProviders::Dummy
- Inherits:
-
Base
- Object
- Base
- SmsOnRails::ServiceProviders::Dummy
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
#ping ⇒ Object
9
10
11
|
# File 'lib/sms_on_rails/service_providers/dummy.rb', line 9
def ping
true
end
|
#send_message(phone_number, message, options = {}) ⇒ Object
13
14
15
16
|
# File 'lib/sms_on_rails/service_providers/dummy.rb', line 13
def send_message(phone_number, message, options={})
response = {:unique_id => "#{$$}:#{Time.now.strftime('%Y%m%d%H%M%SZ')}.#{rand(1000)}"}
response
end
|