Sha256: d58c4ac899d5e20c5ab7bf34015041124d03d9c92bce4bc72d4f68d9fd1a380d
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
require 'fog/vcloud_director/models/compute/organization' module Fog module VcloudDirector class Compute class Organizations < Collection model Fog::VcloudDirector::Compute::Organization private def get_by_id(org_id) org = service.get_organization(org_id).body org.delete(:Link) service.add_id_from_href!(org) org end def item_list data = service.get_organizations.body orgs = data[:Org] orgs.each {|org| service.add_id_from_href!(org)} orgs end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-vcloud-director-0.3.1 | lib/fog/vcloud_director/models/compute/organizations.rb |
fog-vcloud-director-0.3.0 | lib/fog/vcloud_director/models/compute/organizations.rb |