Method: Fog::Storage::IBM::Mock#get_volume

Defined in:
lib/fog/ibm/requests/storage/get_volume.rb

#get_volume(volume_id) ⇒ Object

For whatever reason, get_volume returns different data than an entry in list_volumes

[View source]

27
28
29
30
31
32
33
34
35
36
# File 'lib/fog/ibm/requests/storage/get_volume.rb', line 27

def get_volume(volume_id)
  response = Excon::Response.new
  if volume_exists? volume_id
    response.status = 200
    response.body   = format_get_volume_response_for(volume_id)
  else
    response.status = 404
  end
  response
end