Module: Email::Verification

Defined in:
lib/email/verification.rb,
lib/email/verification/base.rb,
lib/email/verification/gmail.rb,
lib/email/verification/errors.rb,
lib/email/verification/hotmail.rb,
lib/email/verification/version.rb,
lib/email/verification/verifier.rb,
lib/email/verification/configuration.rb

Defined Under Namespace

Modules: Errors Classes: Base, Configuration, Error, Gmail, Hotmail, Verifier

Constant Summary collapse

VERSION =
"0.2.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



28
29
30
# File 'lib/email/verification.rb', line 28

def self.configuration
  @configuration  ||=   ::Email::Verification::Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



36
37
38
# File 'lib/email/verification.rb', line 36

def self.configure
  yield(configuration)
end

.resetObject



32
33
34
# File 'lib/email/verification.rb', line 32

def self.reset
  @configuration    =   ::Email::Verification::Configuration.new
end

.retrieve_verification_code(email:, password: nil, mailboxes: %w(Inbox),, settings: {}, mode: :interactive, proxy: nil) ⇒ Object



40
41
42
# File 'lib/email/verification.rb', line 40

def self.retrieve_verification_code(email:, password: nil, mailboxes: %w(Inbox), settings: {}, mode: :interactive, proxy: nil)
  ::Email::Verification::Verifier.new(mode: mode).retrieve_verification_code(email: email, password: password, mailboxes: mailboxes, settings: settings, proxy: proxy)
end