Sha256: f56053a1d68c7f01d1e78d8f9126f53270786fd02a608b47d974f371ce42c43f
Contents?: true
Size: 953 Bytes
Versions: 39
Compression:
Stored size: 953 Bytes
Contents
module Fog module DNS class DNSimple class Real # Delete the given domain from your account. You may use # either the domain ID or the domain name. # # Please note that for domains which are registered with # DNSimple this will not delete the domain from the registry. # # ==== Parameters # * name<~String> - domain name or numeric ID # def delete_domain(name) request( :expects => 200, :method => 'DELETE', :path => "/domains/#{name}" ) end end class Mock def delete_domain(name) self.data[:records].delete name self.data[:domains].reject! { |domain| domain["domain"]["name"] == name } response = Excon::Response.new response.status = 200 response end end end end end
Version data entries
39 entries across 39 versions & 3 rubygems