class Fog::Compute::Google::Routes
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/google/models/routes.rb, line 7 def all data = service.list_routes.body load(data["items"] || []) end
get(identity)
click to toggle source
# File lib/fog/compute/google/models/routes.rb, line 12 def get(identity) if route = service.get_route(identity).body new(route) end rescue Fog::Errors::NotFound nil end