Class: WorkOS::ErrorBodyWithMessageOrMessageList

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/error_body_with_message_or_message_list.rb

Constant Summary collapse

HASH_ATTRS =
{
  message: :message
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ErrorBodyWithMessageOrMessageList

Returns a new instance of ErrorBodyWithMessageOrMessageList.



13
14
15
16
# File 'lib/workos/shared/error_body_with_message_or_message_list.rb', line 13

def initialize(json)
  hash = self.class.normalize(json)
  @message = hash[:message]
end

Instance Attribute Details

#message ⇒ Object

Returns the value of attribute message.



11
12
13
# File 'lib/workos/shared/error_body_with_message_or_message_list.rb', line 11

def message
  @message
end