Class: OpenNebula::OpenNebulaServicePool

Inherits:
DocumentPoolJSON show all
Defined in:
lib/opennebula/flow/service_pool.rb

Overview

ServicePool class

Constant Summary collapse

DOCUMENT_TYPE =
100

Constants inherited from DocumentPoolJSON

DocumentPoolJSON::TEMPLATE_TAG

Constants inherited from DocumentPool

DocumentPool::DOCUMENT_POOL_METHODS

Constants inherited from Pool

Pool::INFO_ALL, Pool::INFO_GROUP, Pool::INFO_MINE, Pool::INFO_PRIMARY_GROUP, Pool::PAGINATED_POOLS

Instance Attribute Summary

Attributes inherited from Pool

#element_name, #pool_name

Instance Method Summary collapse

Methods inherited from DocumentPoolJSON

#to_json

Methods inherited from DocumentPool

#document_type, #info, #info_all, #info_group, #info_mine

Methods inherited from Pool

#each, #each_page, #each_page_delete, #each_with_xpath, #get_hash, #get_page, #info_paginated, #is_paginated?, #loop_page, #to_str

Methods inherited from XMLPool

#each_element

Methods inherited from XMLElement

#[], #add_element, #attr, build_xml, #delete_element, #each, #each_xpath, #element_xml, #has_elements?, #initialize_xml, #name, #retrieve_elements, #retrieve_xmlelements, #set_content, #template_like_str, #template_str, #template_xml, #text, #to_hash, #to_xml, #xml_nil?

Constructor Details

#initialize(client, user_id = -2)) ⇒ OpenNebulaServicePool

Returns a new instance of OpenNebulaServicePool.



24
25
26
# File 'lib/opennebula/flow/service_pool.rb', line 24

def initialize(client, user_id = -2)
    super(client, user_id)
end

Instance Method Details

#factory(element_xml) ⇒ Object



28
29
30
31
32
# File 'lib/opennebula/flow/service_pool.rb', line 28

def factory(element_xml)
    service = OpenNebula::Service.new(element_xml, @client)
    service.load_body
    service
end