Methods

Files

Class/Module Index [+]

Quicksearch

Fog::Vcloud::Compute::Organizations

Public Instance Methods

all() click to toggle source
# File lib/fog/vcloud/models/compute/organizations.rb, line 13
def all
  data = connection.login.body[:Org].select { |org| org[:type] == "application/vnd.vmware.vcloud.org+xml" }
  data.each { |org| org.delete_if { |key, value| [:rel].include?(key) } }
  load(data)
end
get(uri) click to toggle source
# File lib/fog/vcloud/models/compute/organizations.rb, line 19
def get(uri)
  if data = connection.get_organization(uri)
    new(data.body)
  end
rescue Fog::Errors::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.