Class: WorkOS::ErrorResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ErrorResponse
- Defined in:
- lib/workos/shared/error_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ error: :error }.freeze
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
13 14 15 16 |
# File 'lib/workos/shared/error_response.rb', line 13 def initialize(json) hash = self.class.normalize(json) @error = hash[:error] end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
11 12 13 |
# File 'lib/workos/shared/error_response.rb', line 11 def error @error end |