Class: Mailosaur::Models::OtpResult
- Defined in:
- lib/Mailosaur/models/otp_result.rb
Instance Attribute Summary collapse
-
#code ⇒ String
The current one-time password.
-
#expires ⇒ String
The expiry date/time of the current one-time password.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ OtpResult
constructor
A new instance of OtpResult.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ OtpResult
Returns a new instance of OtpResult.
4 5 6 7 |
# File 'lib/Mailosaur/models/otp_result.rb', line 4 def initialize(data = {}) @code = data['code'] @expires = data['expires'] end |
Instance Attribute Details
#code ⇒ String
Returns The current one-time password.
10 11 12 |
# File 'lib/Mailosaur/models/otp_result.rb', line 10 def code @code end |
#expires ⇒ String
Returns The expiry date/time of the current one-time password.
13 14 15 |
# File 'lib/Mailosaur/models/otp_result.rb', line 13 def expires @expires end |