Class: CldProvisioning::Models::Shared::RoleToManage
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::RoleToManage
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/roletomanage.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, scope_id: nil, policy_parameters: nil) ⇒ RoleToManage
constructor
A new instance of RoleToManage.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, scope_id: nil, policy_parameters: nil) ⇒ RoleToManage
Returns a new instance of RoleToManage.
38 39 40 41 42 |
# File 'lib/cld_provisioning/models/shared/roletomanage.rb', line 38 def initialize(id:, scope_id: nil, policy_parameters: nil) @id = id @scope_id = scope_id @policy_parameters = policy_parameters end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/cld_provisioning/models/shared/roletomanage.rb', line 45 def ==(other) return false unless other.is_a?(self.class) return false unless @id == other.id return false unless @scope_id == other.scope_id return false unless @policy_parameters == other.policy_parameters true end |