Class: DingSDK::Shared::ErrorResponse

Inherits:
Crystalline::FieldAugmented show all
Extended by:
T::Sig
Defined in:
lib/ding_sdk/models/shared/errorresponse.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(code: nil, doc_url: nil, message: nil) ⇒ ErrorResponse

Returns a new instance of ErrorResponse.



23
24
25
26
27
# File 'lib/ding_sdk/models/shared/errorresponse.rb', line 23

def initialize(code: nil, doc_url: nil, message: nil)
  @code = code
  @doc_url = doc_url
  @message = message
end

Instance Method Details

#==(other) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/ding_sdk/models/shared/errorresponse.rb', line 29

def ==(other)
  return false unless other.is_a? self.class
  return false unless @code == other.code
  return false unless @doc_url == other.doc_url
  return false unless @message == other.message
  true
end