Sha256: 135edfeb3f8de1ecfe45f2dd466e2f3093c25c310a3859cee2f97ae51c9bfd1b
Contents?: true
Size: 687 Bytes
Versions: 4
Compression:
Stored size: 687 Bytes
Contents
module Fog module Compute class HuaweiCloud class Real def release_address(address_id) request( :expects => [200, 202], :method => 'DELETE', :path => "os-floating-ips/#{address_id}" ) end end class Mock def release_address(_address_id) response = Excon::Response.new response.status = 202 response.headers = { "Content-Type" => "text/html; charset=UTF-8", "Content-Length" => "0", "Date" => Date.new } response.body = {} response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems