Module: Dnsimple::Client::ZonesDistributions
- Included in:
- ZonesService
- Defined in:
- lib/dnsimple/client/zones_distributions.rb
Instance Method Summary collapse
-
#zone_distribution(account_id, zone_id, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::ZoneDistribution>
Checks if a zone change is fully distributed to all DNSimple name servers across the globe.
-
#zone_record_distribution(account_id, zone_id, record_id, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::ZoneDistribution>
Checks if a zone record is fully distributed to all DNSimple name servers across the globe.
Instance Method Details
#zone_distribution(account_id, zone_id, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::ZoneDistribution>
Checks if a zone change is fully distributed to all DNSimple name servers across the globe.
19 20 21 22 23 |
# File 'lib/dnsimple/client/zones_distributions.rb', line 19 def zone_distribution(account_id, zone_id, = {}) response = client.get(Client.versioned("/%s/zones/%s/distribution" % [account_id, zone_id]), ) Dnsimple::Response.new(response, Struct::ZoneDistribution.new(response["data"])) end |
#zone_record_distribution(account_id, zone_id, record_id, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::ZoneDistribution>
Checks if a zone record is fully distributed to all DNSimple name servers across the globe.
41 42 43 44 45 |
# File 'lib/dnsimple/client/zones_distributions.rb', line 41 def zone_record_distribution(account_id, zone_id, record_id, = {}) response = client.get(Client.versioned("/%s/zones/%s/records/%s/distribution" % [account_id, zone_id, record_id]), ) Dnsimple::Response.new(response, Struct::ZoneDistribution.new(response["data"])) end |