Sha256: 75086874d5cea01324cac2cb17cceaec0f15987c98f4fee2a962cca22ce551bf
Contents?: true
Size: 560 Bytes
Versions: 21
Compression:
Stored size: 560 Bytes
Contents
require 'fog/core/collection' require 'fog/openstack/models/compute/volume' module Fog module Compute class OpenStack class Volumes < Fog::Collection model Fog::Compute::OpenStack::Volume def all(detailed=true) load(service.list_volumes(detailed).body['volumes']) end def get(volume_id) if volume = service.get_volume_details(volume_id).body['volume'] new(volume) end rescue Fog::Compute::OpenStack::NotFound nil end end end end end
Version data entries
21 entries across 21 versions & 4 rubygems