Class: Fog::Compute::Libvirt::Volumes

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/libvirt/models/compute/volumes.rb

Instance Method Summary collapse

Instance Method Details

#all(filter = {}) ⇒ Object



10
11
12
# File 'lib/fog/libvirt/models/compute/volumes.rb', line 10

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

#get(key) ⇒ Object



14
15
16
# File 'lib/fog/libvirt/models/compute/volumes.rb', line 14

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