Class: Mappru::DSL::Context::VPC
- Inherits:
-
Object
- Object
- Mappru::DSL::Context::VPC
- Includes:
- TemplateHelper
- Defined in:
- lib/mappru/dsl/context/vpc.rb
Defined Under Namespace
Classes: RouteTable
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, vpc_id, &block) ⇒ VPC
constructor
A new instance of VPC.
Methods included from TemplateHelper
Constructor Details
#initialize(context, vpc_id, &block) ⇒ VPC
Returns a new instance of VPC.
4 5 6 7 8 9 |
# File 'lib/mappru/dsl/context/vpc.rb', line 4 def initialize(context, vpc_id, &block) @vpc_id = vpc_id @context = context.merge(vpc_id: vpc_id) @result = {} instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
11 12 13 |
# File 'lib/mappru/dsl/context/vpc.rb', line 11 def result @result end |