Class: Miam::DSL::Context::ManagedPolicy

Inherits:
Object
  • Object
show all
Includes:
TemplateHelper
Defined in:
lib/miam/dsl/context/managed_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TemplateHelper

#context, #include_template

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

#resultObject (readonly)

Returns the value of attribute result.



10
11
12
# File 'lib/miam/dsl/context/managed_policy.rb', line 10

def result
  @result
end