Class: RailsMFA::Providers::EmailProvider

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

Instance Method Summary collapse

Methods inherited from Base

#send_sms

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