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