mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
2e0b7e545a
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
36 lines
889 B
Ruby
36 lines
889 B
Ruby
module Fog
|
|
module DNS
|
|
class Rage4
|
|
class Real
|
|
# Get the lsit of all domains for 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
|