Class: Xen::Network

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

Instance Method Summary collapse

Constructor Details

#initialize(uid, host) ⇒ Network

Returns a new instance of Network.



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

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

Instance Method Details

#recordObject



9
10
11
# File 'lib/xen/network.rb', line 9

def record
  @host.call("network.get_record", @uid)['Value']
end

#to_sObject



17
18
19
# File 'lib/xen/network.rb', line 17

def to_s
  @uid.to_s
end

#uuidObject



13
14
15
# File 'lib/xen/network.rb', line 13

def uuid
  self.to_s
end