Sha256: 386040df808c3949cb576e900080dd9623731d4ac38b8aec1e8cb62a15847f6b
Contents?: true
Size: 964 Bytes
Versions: 14
Compression:
Stored size: 964 Bytes
Contents
module Fog module Terremark class Real require 'fog/terremark/parsers/get_vdc' # Get details of a vdc # # ==== Parameters # * vdc_id<~Integer> - Id of vdc to lookup # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # FIXME # * 'CatalogItems'<~Array> # * 'href'<~String> - linke to item # * 'name'<~String> - name of item # * 'type'<~String> - type of item # * 'description'<~String> - Description of catalog # * 'name'<~String> - Name of catalog def get_vdc(vdc_id) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Terremark::GetVdc.new, :path => "vdc/#{vdc_id}" ) end end class Mock def get_vdc(vdc_id) raise MockNotImplemented.new("Contributions welcome!") end end end end
Version data entries
14 entries across 14 versions & 1 rubygems