Sha256: 152ecd1b5117a1c062fbddf600b473773f21d46febc12d9979c6b0276246a571
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
module Dnsimple class Client module DomainsZones # Gets a domain zone as zone file. # # @see http://developer.dnsimple.com/v1/domains/zones/#get # # @param [#to_s] domain The domain id or domain name. # @return [String] # # @raise [NotFoundError] # @raise [RequestError] When the request fails. def zone(domain, options = {}) response = client.get(Client.versioned("/domains/#{domain}/zone"), options) response["zone"] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dnsimple-2.2.0 | lib/dnsimple/client/domains_zones.rb |
dnsimple-2.1.1 | lib/dnsimple/client/domains_zones.rb |