Class: Akashi::Vpc::InternetGateway
- Defined in:
- lib/akashi/vpc/internet_gateway.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Ec2::Base
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
Class Method Details
.create ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/akashi/vpc/internet_gateway.rb', line 9 def create response = Akashi::Aws.ec2.client.create_internet_gateway new(response[:internet_gateway][:internet_gateway_id]).tap do |instance| instance.name = Akashi.name puts "Created an InternetGateway (#{instance.id})." end end |
Instance Method Details
#attach(vpc) ⇒ Object
4 5 6 |
# File 'lib/akashi/vpc/internet_gateway.rb', line 4 def attach(vpc) @object.attach(vpc.id) end |