Class: DingSDK::Models::Errors::ErrorResponse
- Inherits:
-
Object
- Object
- DingSDK::Models::Errors::ErrorResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/ding_sdk/models/errors/errorresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(code: nil, doc_url: nil, message: nil) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
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.
25 26 27 28 29 |
# File 'lib/ding_sdk/models/errors/errorresponse.rb', line 25 def initialize(code: nil, doc_url: nil, message: nil) @code = code @doc_url = doc_url @message = end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/ding_sdk/models/errors/errorresponse.rb', line 31 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. true end |