1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rage4/requests/dns/list_domains.rb

41 lines
897 B
Ruby

module Fog
module DNS
class Rage4
class Real
# Get the details for all domains in your account.
# ==== Parameters
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Array>:
# * 'domains'<~Hash>
# * 'id'<~Integer>
# * 'name'<~String>
# * 'owner_email'<~String>
# * 'type'<~Integer>
# * 'subnet_mask'<~Integer>
def list_domains
request(
:expects => 200,
:method => 'GET',
:path => '/rapi/getdomains'
)
end
end
class Mock
def list_domains
response = Excon::Response.new
response.status = 200
response.body = self.data[:domains]
response
end
end
end
end
end