Sha256: 1b8d82c51ca2c57775c377275d6de28aa98c9e5e3519d9f5deab1eaa41870d7c
Contents?: true
Size: 611 Bytes
Versions: 5
Compression:
Stored size: 611 Bytes
Contents
module Fog module OpenStack class Volume module Real def update_volume(volume_id, data = {}) request( :body => Fog::JSON.encode('volume' => data), :expects => 200, :method => 'PUT', :path => "volumes/#{volume_id}" ) end end module Mock def update_volume(volume_id, data = {}) response = Excon::Response.new response.status = 200 response.body = {'volume' => data.merge('id' => volume_id)} response end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems