Class: RailsMFA::Providers::EmailProvider
- Defined in:
- lib/rails_mfa/providers/email_provider.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ EmailProvider
constructor
A new instance of EmailProvider.
- #send_email(to, subject, body) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(&block) ⇒ EmailProvider
Returns a new instance of EmailProvider.
6 7 8 |
# File 'lib/rails_mfa/providers/email_provider.rb', line 6 def initialize(&block) @block = block end |
Instance Method Details
#send_email(to, subject, body) ⇒ Object
10 11 12 |
# File 'lib/rails_mfa/providers/email_provider.rb', line 10 def send_email(to, subject, body) @block.call(to, subject, body) end |