Class: WorkOS::TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter
- Inherits:
-
WorkOS::Types::BaseModel
- Object
- WorkOS::Types::BaseModel
- WorkOS::TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter
- Defined in:
- lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, message: :message, retry_after: :retry_after }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#retry_after ⇒ Object
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(json) ⇒ TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter
constructor
A new instance of TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter.
Constructor Details
#initialize(json) ⇒ TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter
Returns a new instance of TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter.
18 19 20 21 22 23 |
# File 'lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb', line 18 def initialize(json) hash = self.class.normalize(json) @code = hash[:code] @message = hash[:message] @retry_after = hash[:retry_after] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
13 14 15 |
# File 'lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb', line 13 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
13 14 15 |
# File 'lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb', line 13 def @message end |
#retry_after ⇒ Object
Returns the value of attribute retry_after.
13 14 15 |
# File 'lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb', line 13 def retry_after @retry_after end |