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, line 223
def initialize(client, id, href)
  @id, @href = id, href
  @client = client
end

Public Instance Methods

follow() click to toggle source
# File lib/rbovirt.rb, line 228
def follow
  xml = Client::parse_response(OVIRT::client(@client.base_url)[@href].get(@client.auth_header))
  object_class = ::OVIRT.const_get(xml.root.name.camelize)
  object_class.new(@client, (xml.root))
end