Sha256: 7d0fb84090e29cd2a56aebfa4c9886fcd01921c02fdd19a385d6fd73bd484e29
Contents?: true
Size: 575 Bytes
Versions: 53
Compression:
Stored size: 575 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudsigma/models/lib_volume' module Fog module Compute class CloudSigma class LibVolumes < Fog::Collection model Fog::Compute::CloudSigma::LibVolume def all resp = service.list_lib_volumes data = resp.body['objects'] load(data) end def get(vol_id) resp = service.get_lib_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