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/dns/requests/dynect/zone.rb
2011-08-04 16:00:59 -05:00

33 lines
614 B
Ruby

module Fog
module Dynect
class DNS
class Real
require 'fog/dns/parsers/dynect/zone'
def zone
request(
:parser => Fog::Parsers::Dynect::DNS::Zone.new,
:expects => 200,
:method => "GET",
:path => "Zone",
)
end
end
class Mock
def zone
response = Excon::Response.new
response.status = 200
response.body = {
"zones" => ["example.com"]
}
response
end
end
end
end
end