Sha256: e212a203b909950dba8cb6c14d51fa66c0c1fd7528a1cae2b4ca2c4270e1fbae

Contents?: true

Size: 1.13 KB

Versions: 16

Compression:

Stored size: 1.13 KB

Contents

unless Fog.mocking?

  module Fog
    class Terremark

      # Get details of an organization
      #
      # ==== Parameters
      # * organization_id<~Integer> - Id of organization to lookup
      #
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Hash>:
      #     * 'description'<~String> - Description of organization
      #     * 'links'<~Array> - An array of links to entities in the organization
      #       * 'href'<~String> - location of link
      #       * 'name'<~String> - name of link
      #       * 'rel'<~String> - action to perform
      #       * 'type'<~String> - type of link
      #     * 'name'<~String> - Name of organization
      def get_organization(organization_id)
        response = request(
          :expects  => 200,
          :method   => 'GET',
          :parser   => Fog::Parsers::Terremark::GetOrganization.new,
          :path     => "org/#{organization_id}"
        )
        response
      end

    end
  end

else

  module Fog
    class Terremark

      def get_organization(organization_id)
        raise MockNotImplemented.new("Contributions welcome!")
      end

    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-0.0.58 lib/fog/terremark/requests/get_organization.rb
fog-0.0.57 lib/fog/terremark/requests/get_organization.rb
fog-0.0.56 lib/fog/terremark/requests/get_organization.rb
fog-0.0.55 lib/fog/terremark/requests/get_organization.rb
fog-0.0.54 lib/fog/terremark/requests/get_organization.rb
fog-0.0.53 lib/fog/terremark/requests/get_organization.rb
fog-0.0.52 lib/fog/terremark/requests/get_organization.rb
fog-0.0.51 lib/fog/terremark/requests/get_organization.rb
fog-0.0.50 lib/fog/terremark/requests/get_organization.rb
fog-0.0.49 lib/fog/terremark/requests/get_organization.rb
fog-0.0.48 lib/fog/terremark/requests/get_organization.rb
fog-0.0.47 lib/fog/terremark/requests/get_organization.rb
fog-0.0.46 lib/fog/terremark/requests/get_organization.rb
fog-0.0.45 lib/fog/terremark/requests/get_organization.rb
fog-0.0.44 lib/fog/terremark/requests/get_organization.rb
fog-0.0.43 lib/fog/terremark/requests/get_organization.rb