Sha256: 4cfa1f9bcfbf69cb469850fe66ca5c578d85a644592b1629535b07ac3d71cd61

Contents?: true

Size: 390 Bytes

Versions: 13

Compression:

Stored size: 390 Bytes

Contents

require 'fog/core/collection'
require 'fog/libvirt/models/compute/volume'

module Fog
  module Libvirt
    class Compute
      class Volumes < Fog::Collection
        model Fog::Libvirt::Compute::Volume

        def all(filter = {})
          load(service.list_volumes(filter))
        end

        def get(key)
          self.all(:key => key).first
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
fog-libvirt-0.13.1 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.13.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.12.2 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.12.1 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.12.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.11.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.10.1 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.10.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-csem-0.9.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.9.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.8.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.7.0 lib/fog/libvirt/models/compute/volumes.rb
fog-libvirt-0.6.0 lib/fog/libvirt/models/compute/volumes.rb