Sha256: 9611d4d277c4f3969f77890cb910b71bfff09828664558f3eb35a8a5d91b600f
Contents?: true
Size: 708 Bytes
Versions: 3
Compression:
Stored size: 708 Bytes
Contents
module Fog module Compute class DigitalOceanV2 # noinspection RubyStringKeysInHashInspection class Real def delete_server(server_id) request( :expects => [204], :headers => { 'Content-Type' => "application/json; charset=UTF-8", }, :method => 'DELETE', :path => "/v2/droplets/#{server_id}", ) end end # noinspection RubyStringKeysInHashInspection class Mock def delete_server(_) response = Excon::Response.new response.status = 204 response end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems