Class: CldProvisioning::Models::Shared::Principal
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::Principal
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/principal.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type:, id:) ⇒ Principal
constructor
A new instance of Principal.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(type:, id:) ⇒ Principal
Returns a new instance of Principal.
31 32 33 34 |
# File 'lib/cld_provisioning/models/shared/principal.rb', line 31 def initialize(type:, id:) @type = type @id = id end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/cld_provisioning/models/shared/principal.rb', line 37 def ==(other) return false unless other.is_a?(self.class) return false unless @type == other.type return false unless @id == other.id true end |