Class: Akashi::Vpc::RouteTable

Inherits:
Base show all
Defined in:
lib/akashi/vpc/route_table.rb

Instance Method Summary collapse

Methods inherited from Ec2::Base

#name, #name=, service_class

Methods inherited from Base

all, base_class, collection, find, find_by, #initialize, object_class, where

Constructor Details

This class inherits a constructor from Akashi::Base

Instance Method Details

#create_route(internet_gateway:) ⇒ Object



8
9
10
11
# File 'lib/akashi/vpc/route_table.rb', line 8

def create_route(internet_gateway:)
  @object.create_route("0.0.0.0/0", internet_gateway: internet_gateway.id)
  puts "Created a Route to an InternetGateway (#{internet_gateway.id}) on a RouteTable (#{id})."
end

#vpc_idObject



4
5
6
# File 'lib/akashi/vpc/route_table.rb', line 4

def vpc_id
  @object.vpc.id
end