Sha256: 35160e197b938be20ebb952a177cb5bb9ee8c29bd75ba9a85cadb4499059969e
Contents?: true
Size: 741 Bytes
Versions: 39
Compression:
Stored size: 741 Bytes
Contents
module Fog module DNS class DNSimple class Real # Delete the record with the given ID for the given domain. # # ==== Parameters # * domain<~String> # * 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
39 entries across 39 versions & 3 rubygems