class Fog::AWS::Compute::InternetGateway
Public Class Methods
Source
# File lib/fog/aws/models/compute/internet_gateway.rb, line 9 def initialize(attributes={}) super end
Calls superclass method
Public Instance Methods
Source
Source
Source
Source
# 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
Create an internet gateway
>> g = AWS.internet_gateways.new() >> g.save
Returns:¶ ↑
requestId and a internetGateway object