Class: VCloudSdk::Xml::CatalogItem
- Inherits:
-
Wrapper
- Object
- Wrapper
- VCloudSdk::Xml::CatalogItem
show all
- Defined in:
- lib/cloud/vcloud/xml/wrapper_classes/catalog_item.rb
Instance Method Summary
collapse
Methods inherited from Wrapper
#==, #[], #[]=, #add_child, #attribute_with_ns, #content, #content=, #create_child, #create_qualified_name, #create_xpath_query, #doc_namespaces, #error, #get_nodes, #href, #href_id, #initialize, #name, #to_s, #type, #urn, #xpath
Instance Method Details
#entity ⇒ Object
21
22
23
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/catalog_item.rb', line 21
def entity
get_nodes("Entity").first
end
|
#entity=(entity) ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/catalog_item.rb', line 13
def entity=(entity)
entity_node = get_nodes("Entity").first
entity_node["name"] = entity.name
entity_node["id"] = entity.urn
entity_node["href"] = entity.href
entity_node["type"] = entity.type
end
|
#name=(name) ⇒ Object
5
6
7
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/catalog_item.rb', line 5
def name=(name)
@root["name"] = name
end
|
#remove_link ⇒ Object
9
10
11
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/catalog_item.rb', line 9
def remove_link
get_nodes("Link", {"rel" => "remove"}, true).first
end
|