Class: Fog::Compute::Packet::EmailVerification
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::EmailVerification
- Defined in:
- lib/fog/compute/packet/models/email_verification.rb
Overview
EmailVerification Collection
Instance Method Summary collapse
Instance Method Details
#request(email) ⇒ Object
6 7 8 9 |
# File 'lib/fog/compute/packet/models/email_verification.rb', line 6 def request(email) response = service.request_email_verification(email) true if response.status == 201 end |
#verify(token) ⇒ Object
11 12 13 14 |
# File 'lib/fog/compute/packet/models/email_verification.rb', line 11 def verify(token) response = service.verify_email(token) true if response.status == 200 end |