Class: VCloudSdk::Xml::SupportedVersions
- Defined in:
- lib/cloud/vcloud/xml/wrapper_classes/supported_versions.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, #name=, #to_s, #type, #urn, #xpath
Constructor Details
This class inherits a constructor from VCloudSdk::Xml::Wrapper
Instance Method Details
#login_url ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/cloud/vcloud/xml/wrapper_classes/supported_versions.rb', line 5 def login_url ns = namespace.href # Typically it's 'http://www.vmware.com/vcloud/versions' get_nodes('VersionInfo', nil, false, ns).each do |node| if node.get_nodes('Version', nil, false, ns).first.content \ == VCloudClient::VCLOUD_VERSION_NUMBER return node.get_nodes('LoginUrl', nil, false, ns).first end end nil end |