
Constants
VN_POOL_METHODS | = | { :info => "vnpool.info" } | Constants and Class attribute accessors |
Public class methods
new
(client, user_id=0)
client a Client object that represents a XML-RPC connection user_id is to refer to a Pool with VirtualNetworks from that user
[show source]
# File OpenNebula/VirtualNetworkPool.rb, line 19 19: def initialize(client, user_id=0) 20: super('VNET_POOL','VNET',client) 21: 22: @user_id = user_id 23: end
Public instance methods
factory
(element_xml)
Default Factory Method for the Pools
[show source]
# File OpenNebula/VirtualNetworkPool.rb, line 26 26: def factory(element_xml) 27: OpenNebula::VirtualNetwork.new(element_xml,@client) 28: end
info
()
Retrieves all or part of the VirtualNetwork in the pool.
[show source]
# File OpenNebula/VirtualNetworkPool.rb, line 35 35: def info() 36: super(VN_POOL_METHODS[:info],@user_id) 37: end