Class: Pangea::HostCpu

Inherits:
XObject show all
Defined in:
lib/pangea/objects.rb

Overview

A Physical CPU

xen-api: Class host_cpu

Instance Method Summary collapse

Methods inherited from XObject

#ref_call, #uuid

Constructor Details

#initialize(link, ref) ⇒ HostCpu

:nodoc:



267
268
269
270
# File 'lib/pangea/objects.rb', line 267

def initialize(link, ref) #:nodoc:
  super(link, ref)
  @proxy_name = 'host_cpu'
end

Instance Method Details

#model_nameObject

xen-api: host_cpu.get_modelname

CPU Model



300
301
302
# File 'lib/pangea/objects.rb', line 300

def model_name
  ref_call :get_modelname
end

#numberObject

xen-api: host_cpu.get_number



275
276
277
# File 'lib/pangea/objects.rb', line 275

def number
  ref_call :get_number
end

#speedObject

xen-api: host_cpu.get_speed

CPU Speed in MHz



291
292
293
# File 'lib/pangea/objects.rb', line 291

def speed
  ref_call :get_speed
end

#utilisationObject

xen-api: host_cpu.get_utilisation

CPU Utilisation



309
310
311
# File 'lib/pangea/objects.rb', line 309

def utilisation
  ref_call :get_utilisation
end

#vendorObject

xen-api: host_cpu.get_vendor



282
283
284
# File 'lib/pangea/objects.rb', line 282

def vendor
  ref_call :get_vendor
end