Class: CldProvisioning::Models::Shared::CedarError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(cedar_message:, cedar_code:) ⇒ CedarError

Returns a new instance of CedarError.



28
29
30
31
# File 'lib/cld_provisioning/models/shared/cedarerror.rb', line 28

def initialize(cedar_message:, cedar_code:)
  @cedar_message = cedar_message
  @cedar_code = cedar_code
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
# File 'lib/cld_provisioning/models/shared/cedarerror.rb', line 34

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @cedar_message == other.cedar_message
  return false unless @cedar_code == other.cedar_code
  true
end