Class: CldProvisioning::Models::Shared::PermissionsError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(category: nil, code: nil, message: nil, details: nil) ⇒ PermissionsError

Returns a new instance of PermissionsError.



49
50
51
52
53
54
# File 'lib/cld_provisioning/models/shared/permissionserror.rb', line 49

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

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
# File 'lib/cld_provisioning/models/shared/permissionserror.rb', line 57

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