class OpenNebula::HookLog

Class representing the HookLog

Constants

HOOK_LOG_METHODS

Constants and Class attribute accessors

ROOT_NAME

Public Class Methods

new(client) click to toggle source

client a Client object that represents an XML-RPC connection

Calls superclass method
# File lib/opennebula/hook_log.rb, line 39
def initialize(client)
    super(nil)

    @client = client
end

Public Instance Methods

info(min_ts, max_ts, hook_id, rc) click to toggle source

XML-RPC Methods for the HookLog object

# File lib/opennebula/hook_log.rb, line 49
def info(min_ts, max_ts, hook_id, rc)
    rc = @client.call(HOOK_LOG_METHODS[:info],
                      min_ts,
                      max_ts,
                      hook_id,
                      rc)

    if !OpenNebula.is_error?(rc)
        initialize_xml(rc, ROOT_NAME)

        rc = nil
    end

    rc
end
Also aliased as: info!
info!(min_ts, max_ts, hook_id, rc)
Alias for: info