Class: Xen::Base

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

Direct Known Subclasses

Console, Network, SR, VBD, VDI, VIF, VM

Instance Method Summary collapse

Constructor Details

#initialize(uid, host) ⇒ Base

Returns a new instance of Base.



3
4
5
# File 'lib/xen/base.rb', line 3

def initialize(uid, host)
  @uid, @host = uid, host
end

Instance Method Details

#recordObject



15
16
17
# File 'lib/xen/base.rb', line 15

def record
  @host.get_value("#{self.class.to_s.gsub(/^.*::/, '')}.get_record", @uid)
end

#to_sObject



11
12
13
# File 'lib/xen/base.rb', line 11

def to_s
  @uid.to_s
end

#uuidObject



7
8
9
# File 'lib/xen/base.rb', line 7

def uuid
  self.to_s
end