Class: Xen::Network
- Inherits:
-
Object
- Object
- Xen::Network
- Defined in:
- lib/xen/network.rb
Instance Method Summary collapse
-
#initialize(uid, host) ⇒ Network
constructor
A new instance of Network.
- #record ⇒ Object
- #to_s ⇒ Object
- #uuid ⇒ Object
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
#record ⇒ Object
9 10 11 |
# File 'lib/xen/network.rb', line 9 def record @host.call("network.get_record", @uid)['Value'] end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/xen/network.rb', line 17 def to_s @uid.to_s end |
#uuid ⇒ Object
13 14 15 |
# File 'lib/xen/network.rb', line 13 def uuid self.to_s end |