Class: Monosasi::DSL::Context::Rule::Target
- Inherits:
-
Object
- Object
- Monosasi::DSL::Context::Rule::Target
- Includes:
- TemplateHelper, Logger::Helper
- Defined in:
- lib/monosasi/dsl/context/rule/target.rb
Defined Under Namespace
Classes: BatchParameters, EcsParameters
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, id, &block) ⇒ Target
constructor
A new instance of Target.
Methods included from Logger::Helper
Methods included from TemplateHelper
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
#result ⇒ Object (readonly)
Returns the value of attribute result.
12 13 14 |
# File 'lib/monosasi/dsl/context/rule/target.rb', line 12 def result @result end |