Module: Deliverable
- Defined in:
- lib/deliverable.rb,
lib/deliverable/result.rb,
lib/deliverable/version.rb,
lib/deliverable/verifier.rb
Defined Under Namespace
Classes: Configuration, Error, Result, SenderNotConfigured, Verifier
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
20
21
22
|
# File 'lib/deliverable.rb', line 20
def self.config
@config ||= Configuration.new
end
|
24
25
26
|
# File 'lib/deliverable.rb', line 24
def self.configure
yield config
end
|
.verify(email, smtp: true, timeout: nil, sender_email: nil, sender_domain: nil) ⇒ Object
28
29
30
31
32
33
34
35
36
|
# File 'lib/deliverable.rb', line 28
def self.verify(email, smtp: true, timeout: nil, sender_email: nil, sender_domain: nil)
Verifier.new(
email,
smtp: smtp,
timeout: timeout || config.default_timeout,
sender_email: sender_email,
sender_domain: sender_domain
).call
end
|