Class: AnySMS::Backend::NullSender

Inherits:
Base
  • Object
show all
Defined in:
lib/any_sms/backend/null_sender.rb

Overview

Sms backend for mocking sending. Purely for usage in tests.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from AnySMS::Backend::Base

Instance Method Details

#send_sms(_phone, _text, _args = {}) ⇒ Object

Method that emulates sms sending. Does nothing.

Parameters:

  • _phone (String)

    Phone number to send sms (not used in this implementation)

  • _text (String)

    Sms text (not used in this implementation)



8
9
10
# File 'lib/any_sms/backend/null_sender.rb', line 8

def send_sms(_phone, _text, _args = {})
  respond_with_status :success
end