Sha256: 1354e8475d407b36af44b986a251d335ce60f473be7e864e950f773014cff02d
Contents?: true
Size: 650 Bytes
Versions: 32
Compression:
Stored size: 650 Bytes
Contents
module Fog module Compute class OpenStack class Real def get_volume_details(volume_id) request( :expects => 200, :method => 'GET', :path => "os-volumes/#{volume_id}" ) end end class Mock def get_volume_details(volume_id) response = Excon::Response.new if data = self.data[:volumes][volume_id] response.status = 200 response.body = { 'volume' => data } response else raise Fog::Compute::OpenStack::NotFound end end end end end end
Version data entries
32 entries across 32 versions & 5 rubygems