Class: Xen::Host

Inherits:
Object
  • Object
show all
Defined in:
lib/xen/host.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHost

Returns a new instance of Host.



4
5
6
7
8
# File 'lib/xen/host.rb', line 4

def initialize
  Xen::Command.xm_info.each do |i,j|
    instance_variable_set("@#{i}", j)
  end
end

Instance Attribute Details

#free_memoryObject (readonly)

Returns the value of attribute free_memory.



2
3
4
# File 'lib/xen/host.rb', line 2

def free_memory
  @free_memory
end

#hostObject (readonly)

Returns the value of attribute host.



2
3
4
# File 'lib/xen/host.rb', line 2

def host
  @host
end

#machineObject (readonly)

Returns the value of attribute machine.



2
3
4
# File 'lib/xen/host.rb', line 2

def machine
  @machine
end

#total_memoryObject (readonly)

Returns the value of attribute total_memory.



2
3
4
# File 'lib/xen/host.rb', line 2

def total_memory
  @total_memory
end