Sha256: 28053b92d21bb57eb835783badf22927fa802c37401ea9f195b63671ac48ca10
Contents?: true
Size: 496 Bytes
Versions: 15
Compression:
Stored size: 496 Bytes
Contents
module Fog module Compute class Google class Routes < Fog::Collection model Fog::Compute::Google::Route def all data = service.list_routes.to_h load(data[:items] || []) end def get(identity) if route = service.get_route(identity).to_h new(route) end rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 nil end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems