class Fog::Compute::Aliyun::RouteTables

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/aliyun/models/compute/route_tables.rb, line 14
def all(options = {})
  requires :v_router
  data = Fog::JSON.decode(service.list_route_tables(v_router.id, options).body)['RouteTables']['RouteTable']
  load(data)
end
get(routeTableId) click to toggle source
# File lib/fog/aliyun/models/compute/route_tables.rb, line 20
def get(routeTableId)
  requires :v_router
  self.class.new(service: service, v_router: v_router).all(routeTableId: routeTableId)[0] if routeTableId
end