Class: StackOne::Models::Shared::WriteResultApiModel

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(message: nil, provider_errors: nil, status_code: nil, timestamp: nil, unified_warnings: nil) ⇒ WriteResultApiModel

Returns a new instance of WriteResultApiModel.



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

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

Instance Method Details

#==(other) ⇒ Object



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

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