2011-02-23 22:35:05 -05:00
|
|
|
module Fog
|
2011-06-15 20:25:01 -04:00
|
|
|
module DNS
|
|
|
|
class DNSimple
|
2011-02-23 22:35:05 -05:00
|
|
|
class Real
|
|
|
|
# Get the details for a specific domain in your account. You
|
|
|
|
# may pass either the domain numeric ID or the domain name itself.
|
2014-01-16 17:21:31 -05:00
|
|
|
#
|
2011-02-23 22:35:05 -05:00
|
|
|
# ==== Parameters
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Hash>:
|
2014-01-16 17:21:31 -05:00
|
|
|
# * <~Array>:
|
|
|
|
# * 'domain'<~Hash> The representation of the domain.
|
2011-02-23 22:35:05 -05:00
|
|
|
def list_domains
|
|
|
|
request(
|
2014-01-16 17:21:31 -05:00
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:path => '/domains'
|
|
|
|
)
|
2011-02-23 22:35:05 -05:00
|
|
|
end
|
|
|
|
end
|
2013-07-28 14:07:29 -04:00
|
|
|
|
|
|
|
class Mock
|
|
|
|
def list_domains
|
|
|
|
response = Excon::Response.new
|
|
|
|
response.status = 200
|
|
|
|
response.body = self.data[:domains]
|
|
|
|
response
|
|
|
|
end
|
|
|
|
end
|
2011-02-23 22:35:05 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|