Class: CldProvisioning::Models::Shared::PermissionsError
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::PermissionsError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/permissionserror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(category: nil, code: nil, message: nil, details: nil) ⇒ PermissionsError
constructor
A new instance of PermissionsError.
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 = @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. return false unless @details == other.details true end |