Class: Xen::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/xen/base.rb
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
#record ⇒ Object
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_s ⇒ Object
11
12
13
|
# File 'lib/xen/base.rb', line 11
def to_s
@uid.to_s
end
|
#uuid ⇒ Object
7
8
9
|
# File 'lib/xen/base.rb', line 7
def uuid
self.to_s
end
|