Class: Mappru::DSL::Context::VPC::RouteTable

Inherits:
Object
  • Object
show all
Includes:
TemplateHelper
Defined in:
lib/mappru/dsl/context/vpc/route_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TemplateHelper

#context, #include_template

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

#resultObject (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