class Fog::AWS::Compute::RouteTable
Public Class Methods
Source
# File lib/fog/aws/models/compute/route_table.rb, line 13 def initialize(attributes={}) super end
Calls superclass method
Public Instance Methods
Source
Source
# File lib/fog/aws/models/compute/route_table.rb, line 43 def save requires :vpc_id data = service.create_route_table(vpc_id).body['routeTable'].first new_attributes = data.reject {|key,value| key == 'requestId'} merge_attributes(new_attributes) true end
Create a route table
>> routetable = connection.route_tables.new >> routetable.save
Returns:¶ ↑
True or an exception depending on the result. Keep in mind that this creates a new route table.
Private Instance Methods
Source
# File lib/fog/aws/models/compute/route_table.rb, line 54 def associationSet=(new_association_set) merge_attributes(new_association_set.first || {}) end
Source
# File lib/fog/aws/models/compute/route_table.rb, line 58 def routeSet=(new_route_set) merge_attributes(new_route_set || {}) end