lib/fog/aws/models/compute/route_table.rb in fog-1.22.0 vs lib/fog/aws/models/compute/route_table.rb in fog-1.22.1
- old
+ new
@@ -1,21 +1,19 @@
require 'fog/core/model'
module Fog
module Compute
class AWS
-
class RouteTable < Fog::Model
-
identity :id, :aliases => 'routeTableId'
attribute :vpc_id, :aliases => 'vpcId'
attribute :routes, :aliases => 'routeSet'
attribute :associations, :aliases => 'associationSet'
attribute :tags, :aliases => 'tagSet'
-
+
def initialize(attributes={})
super
end
# Remove an existing route table
@@ -50,20 +48,19 @@
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
def associationSet=(new_association_set)
merge_attributes(new_association_set.first || {})
end
def routeSet=(new_route_set)
merge_attributes(new_route_set || {})
end
-
end
end
end
end