mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
22 lines
478 B
Ruby
22 lines
478 B
Ruby
module Fog
|
|
module DNS
|
|
class Dynect
|
|
class Real
|
|
|
|
# Get one or more zones
|
|
#
|
|
# ==== Parameters
|
|
# * options<~Hash>:
|
|
# * zone<~String> - name of zone to lookup, or omit to return list of zones
|
|
|
|
def get_zone(options = {})
|
|
request(
|
|
:expects => 200,
|
|
:method => :get,
|
|
:path => ['Zone', options['zone']].compact.join('/')
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|