Class: Conjur::Policy::Plan
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#resources_created ⇒ Object
readonly
Returns the value of attribute resources_created.
-
#roles_created ⇒ Object
readonly
Returns the value of attribute roles_created.
Instance Method Summary collapse
- #action(a) ⇒ Object
-
#initialize ⇒ Plan
constructor
A new instance of Plan.
Constructor Details
#initialize ⇒ Plan
Returns a new instance of Plan.
6 7 8 9 10 |
# File 'lib/conjur/policy/plan.rb', line 6 def initialize @actions = [] @roles_created = Set.new @resources_created = Set.new end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
4 5 6 |
# File 'lib/conjur/policy/plan.rb', line 4 def actions @actions end |
#resources_created ⇒ Object (readonly)
Returns the value of attribute resources_created.
4 5 6 |
# File 'lib/conjur/policy/plan.rb', line 4 def resources_created @resources_created end |
#roles_created ⇒ Object (readonly)
Returns the value of attribute roles_created.
4 5 6 |
# File 'lib/conjur/policy/plan.rb', line 4 def roles_created @roles_created end |
Instance Method Details
#action(a) ⇒ Object
12 13 14 |
# File 'lib/conjur/policy/plan.rb', line 12 def action a @actions.push a end |