lib/fog/hp/requests/dns/delete_domain.rb in fog-1.22.0 vs lib/fog/hp/requests/dns/delete_domain.rb in fog-1.22.1
- old
+ new
@@ -1,11 +1,9 @@
module Fog
module HP
class DNS
-
class Real
-
# Delete a DNS domain
#
# ==== Parameters
# * domain_id<~String> - UUId of domain to delete
#
@@ -14,24 +12,21 @@
:expects => 200,
:method => 'DELETE',
:path => "domains/#{domain_id}"
)
end
-
end
class Mock
def delete_domain(domain_id)
response = Excon::Response.new
- if list_domains.body['domains'].detect { |_| _['id'] == domain_id }
+ if list_domains.body['domains'].find { |_| _['id'] == domain_id }
response.status = 202
response
else
raise Fog::HP::DNS::NotFound
end
end
-
end
-
end
end
end