class Fog::AWS::Compute::InternetGateway
Public Class Methods
new(attributes={})
click to toggle source
Calls superclass method
# File lib/fog/aws/models/compute/internet_gateway.rb, line 9 def initialize(attributes={}) super end
Public Instance Methods
attach(vpc_id)
click to toggle source
destroy()
click to toggle source
detach(vpc_id)
click to toggle source
save()
click to toggle source
Create an internet gateway
>> g = AWS.internet_gateways.new() >> g.save
Returns:¶ ↑
requestId and a internetGateway object
# File lib/fog/aws/models/compute/internet_gateway.rb, line 65 def save data = service.create_internet_gateway.body['internetGatewaySet'].first new_attributes = data.reject {|key,value| key == 'requestId'} merge_attributes(new_attributes) true true end