Class: RailsMFA::Providers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_mfa/providers/base.rb

Direct Known Subclasses

EmailProvider, SmsProvider

Instance Method Summary collapse

Instance Method Details

#send_email(to, subject, body) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/rails_mfa/providers/base.rb', line 10

def send_email(to, subject, body)
  raise NotImplementedError, "Implement send_email in provider"
end

#send_sms(to, message) ⇒ Object

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/rails_mfa/providers/base.rb', line 6

def send_sms(to, message)
  raise NotImplementedError, "Implement send_sms in provider"
end