Sha256: ca27604a71411afc0f7cfcd1c4541753b3c74b528cf094e8f141caf157c365c5
Contents?: true
Size: 777 Bytes
Versions: 5
Compression:
Stored size: 777 Bytes
Contents
module Fog module DNS class DNSimple class Real # Delete the record with the given ID for the given domain. # # ==== Parameters # * domain<~String> - domain name or numeric ID # * record_id<~String> def delete_record(domain, record_id) request( :expects => 200, :method => "DELETE", :path => "/domains/#{domain}/records/#{record_id}" ) end end class Mock def delete_record(domain, record_id) self.data[:records][domain].reject! { |record| record["record"]["id"] == record_id } response = Excon::Response.new response.status = 200 response end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems