Class: CldProvisioning::Models::Shared::CustomPolicy
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::CustomPolicy
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/custompolicy.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(policy_statement:, scope_type:, name:, description: nil, scope_id: nil, enabled: true) ⇒ CustomPolicy
constructor
A new instance of CustomPolicy.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(policy_statement:, scope_type:, name:, description: nil, scope_id: nil, enabled: true) ⇒ CustomPolicy
Returns a new instance of CustomPolicy.
73 74 75 76 77 78 79 80 |
# File 'lib/cld_provisioning/models/shared/custompolicy.rb', line 73 def initialize(policy_statement:, scope_type:, name:, description: nil, scope_id: nil, enabled: true) @policy_statement = policy_statement @scope_type = scope_type @name = name @description = description @scope_id = scope_id @enabled = enabled end |
Instance Method Details
#==(other) ⇒ Object
83 84 85 86 87 88 89 90 91 92 |
# File 'lib/cld_provisioning/models/shared/custompolicy.rb', line 83 def ==(other) return false unless other.is_a?(self.class) return false unless @policy_statement == other.policy_statement return false unless @scope_type == other.scope_type return false unless @name == other.name return false unless @description == other.description return false unless @scope_id == other.scope_id return false unless @enabled == other.enabled true end |