Class: Olyx::Guardrails::PolicyRuleComponents::IdentityConfiguration
- Inherits:
-
Object
- Object
- Olyx::Guardrails::PolicyRuleComponents::IdentityConfiguration
- Defined in:
- lib/olyx/guardrails/policy_rule/configuration.rb
Overview
Validated identity and descriptive policy-rule fields.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, description) ⇒ IdentityConfiguration
constructor
A new instance of IdentityConfiguration.
Constructor Details
#initialize(name, description) ⇒ IdentityConfiguration
Returns a new instance of IdentityConfiguration.
20 21 22 23 24 |
# File 'lib/olyx/guardrails/policy_rule/configuration.rb', line 20 def initialize(name, description) @name = Values.name(name) @description = Values.description(description) freeze end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
18 19 20 |
# File 'lib/olyx/guardrails/policy_rule/configuration.rb', line 18 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/olyx/guardrails/policy_rule/configuration.rb', line 18 def name @name end |