Class: RailsMFA::Providers::SmsProvider
- Defined in:
- lib/rails_mfa/providers/sms_provider.rb
Overview
Example: host app can create a provider class that implements send_sms
Instance Method Summary collapse
-
#initialize(&block) ⇒ SmsProvider
constructor
A new instance of SmsProvider.
- #send_sms(to, message) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(&block) ⇒ SmsProvider
Returns a new instance of SmsProvider.
7 8 9 |
# File 'lib/rails_mfa/providers/sms_provider.rb', line 7 def initialize(&block) @block = block end |
Instance Method Details
#send_sms(to, message) ⇒ Object
11 12 13 |
# File 'lib/rails_mfa/providers/sms_provider.rb', line 11 def send_sms(to, ) @block.call(to, ) end |