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