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