# File lib/fog/xenserver/models/compute/host.rb, line 45 def host_cpus cpus = [] (__host_cpus || []).each do |ref| cpu_ref = service.get_record(ref, 'host_cpu' ) cpu_ref[:service] = service cpus << Fog::Compute::XenServer::HostCpu.new(cpu_ref) end cpus end