Class: Fog::Compute::XenServer::Hosts
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::XenServer::Hosts
- Defined in:
- lib/fog/xenserver/models/compute/hosts.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/fog/xenserver/models/compute/hosts.rb', line 12 def all(={}) data = service.get_records 'host' load(data) end |
#get(host_ref) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/fog/xenserver/models/compute/hosts.rb', line 17 def get( host_ref ) if host_ref && host = service.get_record( host_ref, 'host' ) new(host) else nil end end |