class OVIRT::Link
Attributes
client[RW]
href[RW]
id[RW]
Public Class Methods
new(client, id, href)
click to toggle source
# File lib/rbovirt.rb 223 def initialize(client, id, href) 224 @id, @href = id, href 225 @client = client 226 end
Public Instance Methods
follow()
click to toggle source
# File lib/rbovirt.rb 228 def follow 229 xml = Client::parse_response(OVIRT::client(@client.base_url)[@href].get(@client.auth_header)) 230 object_class = ::OVIRT.const_get(xml.root.name.camelize) 231 object_class.new(@client, (xml.root)) 232 end