Exception: StackOne::Models::Errors::BadRequestResponse

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/errors/badrequestresponse.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(message:, status_code:, timestamp:, data: nil, provider_errors: nil) ⇒ BadRequestResponse

Returns a new instance of BadRequestResponse.



27
28
29
30
31
32
33
# File 'lib/stack_one/models/errors/badrequestresponse.rb', line 27

def initialize(message:, status_code:, timestamp:, data: nil, provider_errors: nil)
  @message = message
  @status_code = status_code
  @timestamp = timestamp
  @data = data
  @provider_errors = provider_errors
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/stack_one/models/errors/badrequestresponse.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @message == other.message
  return false unless @status_code == other.status_code
  return false unless @timestamp == other.timestamp
  return false unless @data == other.data
  return false unless @provider_errors == other.provider_errors
  true
end