Sha256: 8deaee08410e06b98226c723cad81e8d480b7181728164765305569bcd410d38

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

require File.expand_path("../admin_organization", __FILE__)

module Fog
  module Compute
    class Ecloud
      class AdminOrganizations < Fog::Ecloud::Collection
        identity :href

        model Fog::Compute::Ecloud::AdminOrganization

        def get(uri)
          if data = service.get_admin_organization(uri)
            new(data.body)
          end
        rescue ServiceError => e
          raise e unless e.status_code == 404
          nil
        end
      end
    end
  end
end

Version data entries

4 entries across 2 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/admin_organizations.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/admin_organizations.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/admin_organizations.rb
fog-ecloud-0.3.0 lib/fog/compute/ecloud/models/admin_organizations.rb