Method: Dnsimple::Client::Certificates#certificates
- Defined in:
- lib/dnsimple/client/certificates.rb
#certificates(account_id, domain_name, options = {}) ⇒ Dnsimple::PaginatedResponse<Dnsimple::Struct::Certificate> Also known as: list_certificates
List the certificates for the domain in the account.
27 28 29 30 31 |
# File 'lib/dnsimple/client/certificates.rb', line 27 def certificates(account_id, domain_name, = {}) response = client.get(Client.versioned("/%s/domains/%s/certificates" % [account_id, domain_name]), Options::ListOptions.new()) Dnsimple::PaginatedResponse.new(response, response["data"].map { |r| Struct::Certificate.new(r) }) end |