class Fog::AWS::Compute::RouteTable
Public Class Methods
new(attributes={})
click to toggle source
Calls superclass method
# File lib/fog/aws/models/compute/route_table.rb, line 13 def initialize(attributes={}) super end
Public Instance Methods
destroy()
click to toggle source
save()
click to toggle source
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.
# 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
Private Instance Methods
associationSet=(new_association_set)
click to toggle source
# File lib/fog/aws/models/compute/route_table.rb, line 54 def associationSet=(new_association_set) merge_attributes(new_association_set.first || {}) end
routeSet=(new_route_set)
click to toggle source
# File lib/fog/aws/models/compute/route_table.rb, line 58 def routeSet=(new_route_set) merge_attributes(new_route_set || {}) end