Class: Fog::Compute::Vsphere::Folder

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

Instance Method Summary collapse

Instance Method Details

#to_sObject


18
19
20
# File 'lib/fog/vsphere/models/compute/folder.rb', line 18

def to_s
  name
end

#vmsObject


13
14
15
16
# File 'lib/fog/vsphere/models/compute/folder.rb', line 13

def vms
  return [] if type.to_s != 'vm'
  service.servers(:folder => path, :datacenter => datacenter)
end