Class: Miam::DSL::Context::ManagedPolicy
- Inherits:
-
Object
- Object
- Miam::DSL::Context::ManagedPolicy
- Includes:
- TemplateHelper
- Defined in:
- lib/miam/dsl/context/managed_policy.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, name, &block) ⇒ ManagedPolicy
constructor
A new instance of ManagedPolicy.
Methods included from TemplateHelper
Constructor Details
#initialize(context, name, &block) ⇒ ManagedPolicy
Returns a new instance of ManagedPolicy.
4 5 6 7 8 |
# File 'lib/miam/dsl/context/managed_policy.rb', line 4 def initialize(context, name, &block) @policy_name = name @context = context.merge(:policy_name => name) @result = {:document => get_document(block)} end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
10 11 12 |
# File 'lib/miam/dsl/context/managed_policy.rb', line 10 def result @result end |