Class: Fog::Vsphere::Compute::Datacenters
- Inherits:
-
Collection
- Object
- Collection
- Fog::Vsphere::Compute::Datacenters
- Defined in:
- lib/fog/vsphere/models/compute/datacenters.rb
Instance Method Summary collapse
Instance Method Details
#all(filters = {}) ⇒ Object
7 8 9 |
# File 'lib/fog/vsphere/models/compute/datacenters.rb', line 7 def all(filters = {}) load service.list_datacenters(filters) end |
#get(name) ⇒ Object
11 12 13 |
# File 'lib/fog/vsphere/models/compute/datacenters.rb', line 11 def get(name) new service.get_datacenter(name) end |