Sha256: 5c787e39edf78881475d9302e19ac7d91aee2437c301d000e394af3cbda3246d

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

# Sms backend for mocking sending.
# Purely for usage in tests.
class ActiveSMS::Backend::NullSender < ActiveSMS::Backend::Base
  # Method that emulates sms sending. Does nothing.
  #
  # @param _phone [String] Phone number to send sms (not used in this implementation)
  # @param _text  [String] Sms text (not used in this implementation)
  def send_sms(_phone, _text)
    respond_with_status :success
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_sms-0.2.1 lib/active_sms/backend/null_sender.rb