Sha256: 40d796219310f360389e4d7849f62caf5bf000e3fce4a93711ca98e9cffd0ee2
Contents?: true
Size: 557 Bytes
Versions: 53
Compression:
Stored size: 557 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudsigma/models/volume' module Fog module Compute class CloudSigma class Volumes < Fog::Collection model Fog::Compute::CloudSigma::Volume def all resp = service.list_volumes data = resp.body['objects'] load(data) end def get(vol_id) resp = service.get_volume(vol_id) data = resp.body new(data) rescue Fog::CloudSigma::Errors::NotFound return nil end end end end end
Version data entries
53 entries across 53 versions & 3 rubygems