Class: Olyx::Guardrails::PolicyRuleComponents::IdentityConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/olyx/guardrails/policy_rule/configuration.rb

Overview

Validated identity and descriptive policy-rule fields.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



18
19
20
# File 'lib/olyx/guardrails/policy_rule/configuration.rb', line 18

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/olyx/guardrails/policy_rule/configuration.rb', line 18

def name
  @name
end