Class: Fog::Vsphere::Compute::Cdroms

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/vsphere/models/compute/cdroms.rb

Instance Method Summary collapse

Instance Method Details

#all(_filters = {}) ⇒ Object



8
9
10
# File 'lib/fog/vsphere/models/compute/cdroms.rb', line 8

def all(_filters = {})
  load service.list_vm_cdroms(instance_uuid)
end

#get(unit_number) ⇒ Object



12
13
14
# File 'lib/fog/vsphere/models/compute/cdroms.rb', line 12

def get(unit_number)
  all.find { |cdrom| cdrom.unit_number == unit_number }
end