Class: VCloudSdk::Xml::CatalogItem
- Defined in:
- lib/ruby_vcloud_sdk/xml/wrapper_classes/catalog_item.rb
Instance Method Summary collapse
Methods inherited from Wrapper
#==, #[], #[]=, #add_child, #attribute, #content, #content=, #create_child, #create_qualified_name, #create_xpath_query, #doc_namespaces, #edit_link, #get_nodes, #href, #href=, #href_id, #initialize, #name, #name=, #power_off_link, #power_on_link, #remove_link, #running_tasks, #to_s, #type, #type=, #undeploy_link, #urn, #xpath
Constructor Details
This class inherits a constructor from VCloudSdk::Xml::Wrapper
Instance Method Details
#entity ⇒ Object
13 14 15 |
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/catalog_item.rb', line 13 def entity get_nodes(XML_TYPE[:ENTITY]).first end |
#entity=(entity) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/catalog_item.rb', line 5 def entity=(entity) entity_node = self.entity entity_node[:name] = entity.name entity_node[:id] = entity.urn entity_node[:href] = entity.href entity_node[:type] = entity.type end |