Sha256: cd1c2eec5cf214b8d0b4a9b14b10128d7af2a69807c85e20f47769ecc8445183

Contents?: true

Size: 661 Bytes

Versions: 7

Compression:

Stored size: 661 Bytes

Contents

module Fog
  module DNSimple
    class DNS
      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
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/dnsimple/delete_domain.rb
fog-0.8.1 lib/fog/dns/requests/dnsimple/delete_domain.rb
fog-0.8.0 lib/fog/dns/requests/dnsimple/delete_domain.rb
fog-0.7.2 lib/fog/dns/requests/dnsimple/delete_domain.rb
fog-0.7.1 lib/fog/dns/requests/dnsimple/delete_domain.rb
fog-0.7.0 lib/fog/dns/requests/dnsimple/delete_domain.rb
fog-0.6.0 lib/fog/dns/requests/dnsimple/delete_domain.rb