Sha256: ada873bdbe913c02c536f8a5a5741cf26ee6a8e8d0d0c2c25ee3c51fa05adfd3
Contents?: true
Size: 580 Bytes
Versions: 25
Compression:
Stored size: 580 Bytes
Contents
module Fog module Image class OpenStack class V1 class Real def add_member_to_image(image_id, tenant_id) request( :expects => [200, 204], :method => 'PUT', :path => "images/#{image_id}/members/#{tenant_id}" ) end end class Mock def add_member_to_image(_image_id, _tenant_id) response = Excon::Response.new response.status = [200, 204][rand(2)] response end end end end end end
Version data entries
25 entries across 23 versions & 3 rubygems