Class: CldProvisioning::Models::Shared::Role
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::Role
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/role.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, system_policy_ids: nil, description: nil) ⇒ Role
constructor
A new instance of Role.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name:, system_policy_ids: nil, description: nil) ⇒ Role
Returns a new instance of Role.
41 42 43 44 45 |
# File 'lib/cld_provisioning/models/shared/role.rb', line 41 def initialize(name:, system_policy_ids: nil, description: nil) @name = name @system_policy_ids = system_policy_ids @description = description end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/cld_provisioning/models/shared/role.rb', line 48 def ==(other) return false unless other.is_a?(self.class) return false unless @name == other.name return false unless @system_policy_ids == other.system_policy_ids return false unless @description == other.description true end |