Class: BriteVerifyApi::Clients::Email
- Defined in:
- lib/brite_verify_api/clients/email.rb
Constant Summary collapse
- API_PATH =
"/emails.json".freeze
Constants inherited from Base
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
Instance Method Summary collapse
-
#initialize(email = nil) ⇒ Email
constructor
A new instance of Email.
- #verify ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(email = nil) ⇒ Email
Returns a new instance of Email.
7 8 9 |
# File 'lib/brite_verify_api/clients/email.rb', line 7 def initialize(email = nil) @email = email end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/brite_verify_api/clients/email.rb', line 5 def email @email end |
Instance Method Details
#verify ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/brite_verify_api/clients/email.rb', line 11 def verify unless BriteVerifyApi.configuration.default_email_api_reponse.nil? return RecursiveOpenStruct.new( BriteVerifyApi.configuration.default_email_api_reponse, ) end = { address: email } get path, end |