class OpenNebula::ZonePool

Constants

ZONE_POOL_METHODS

Constants and Class attribute accessors

Public Class Methods

new(client) click to toggle source

@param client [OpenNebula::Client] XML-RPC connection

Calls superclass method OpenNebula::Pool.new
# File lib/opennebula/zone_pool.rb, line 35
def initialize(client)
    super('ZONE_POOL','ZONE',client)
end

Public Instance Methods

factory(element_xml) click to toggle source

Factory method to create Zone objects @return [Zone] new Zone object

# File lib/opennebula/zone_pool.rb, line 41
def factory(element_xml)
    OpenNebula::Zone.new(element_xml,@client)
end
info() click to toggle source

Retrieves all the ZONEs in the pool. @return [nil, OpenNebula::Error] nil in case of success, Error

otherwise
Calls superclass method OpenNebula::Pool#info
# File lib/opennebula/zone_pool.rb, line 52
def info()
    super(ZONE_POOL_METHODS[:info])
end
Also aliased as: info!
info!()
Alias for: info