Class: Monosasi::DSL::Context::Rule::Target

Inherits:
Object
  • Object
show all
Includes:
TemplateHelper, Logger::Helper
Defined in:
lib/monosasi/dsl/context/rule/target.rb

Defined Under Namespace

Classes: BatchParameters, EcsParameters

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logger::Helper

#log

Methods included from TemplateHelper

#context, #include_template

Constructor Details

#initialize(context, id, &block) ⇒ Target

Returns a new instance of Target.



5
6
7
8
9
10
# File 'lib/monosasi/dsl/context/rule/target.rb', line 5

def initialize(context, id, &block)
  @id = id
  @context = context.merge(target_id: id)
  @result = {}
  instance_eval(&block)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



12
13
14
# File 'lib/monosasi/dsl/context/rule/target.rb', line 12

def result
  @result
end