Class: OpenNebula::ServiceTemplatePool

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

Overview

Service Template pool

Constant Summary collapse

DOCUMENT_TYPE =
101

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, #initialize

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, #initialize

Methods inherited from XMLElement

#[], #add_element, #attr, build_xml, #delete_element, #each, #each_xpath, #element_xml, #has_elements?, #initialize, #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

This class inherits a constructor from OpenNebula::DocumentPool

Instance Method Details

#factory(element_xml) ⇒ Object



24
25
26
27
28
# File 'lib/opennebula/flow/service_template_pool.rb', line 24

def factory(element_xml)
    s_template = OpenNebula::ServiceTemplate.new(element_xml, @client)
    s_template.load_body
    s_template
end