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