Sha256: c5797efbbea9226a3a6e40b020fe434d7478ff61f7bff43245caedb00567c3b6

Contents?: true

Size: 651 Bytes

Versions: 11

Compression:

Stored size: 651 Bytes

Contents

module Fog
  module Slicehost
    class DNS
      class Real

        # Delete a record from the specified DNS zone
        # ==== Parameters
        # * record_id<~Integer> - Id of DNS record to delete
        #
        # ==== Returns
        # * response<~Excon::Response>: - HTTP status code will be result
        def delete_record(record_id)
          request(
            :expects  => 200,
            :method   => 'DELETE',
            :path     => "records/#{record_id}.xml"
          )
        end

      end

      class Mock

        def delete_record(record_id)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
fog-0.5.1 lib/fog/dns/requests/slicehost/delete_record.rb
fog-0.5.0 lib/fog/dns/requests/slicehost/delete_record.rb
phpfog-fog-0.4.1.3 lib/fog/dns/requests/slicehost/delete_record.rb
phpfog-fog-0.4.1.2 lib/fog/dns/requests/slicehost/delete_record.rb
phpfog-fog-0.4.1.1 lib/fog/dns/requests/slicehost/delete_record.rb
phpfog-fog-0.4.1 lib/fog/dns/requests/slicehost/delete_record.rb
fog-0.4.1 lib/fog/dns/requests/slicehost/delete_record.rb
fog-0.4.0 lib/fog/slicehost/requests/dns/delete_record.rb
fog-0.3.34 lib/fog/slicehost/requests/dns/delete_record.rb
fog-0.3.33 lib/fog/slicehost/requests/dns/delete_record.rb
fog-0.3.32 lib/fog/slicehost/requests/dns/delete_record.rb