class Fog::Compute::XenServer::Hosts
Public Instance Methods
all(options={})
click to toggle source
# File lib/fog/xenserver/models/compute/hosts.rb, line 12 def all(options={}) data = service.get_records 'host' load(data) end
get( host_ref )
click to toggle source
# 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