Class: VCloudSdk::Xml::Session

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/ruby_vcloud_sdk/xml/wrapper_classes/session.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_resolverObject



10
11
12
13
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/session.rb', line 10

def entity_resolver
  get_nodes(XML_TYPE[:LINK],
            { type: VCloudSdk::Xml::MEDIA_TYPE[:ENTITY] }).first
end

#organizationObject



5
6
7
8
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/session.rb', line 5

def organization
  get_nodes(XML_TYPE[:LINK],
            { type: VCloudSdk::Xml::MEDIA_TYPE[:ORGANIZATION] }).first
end