class Digicert::Certificate

Public Class Methods

revoke(certificate_id, attributes = {}) click to toggle source
# File lib/digicert/certificate.rb, line 19
def self.revoke(certificate_id, attributes = {})
  new(attributes.merge(resource_id: certificate_id)).revoke
end

Public Instance Methods

download(attributes = {}) click to toggle source
# File lib/digicert/certificate.rb, line 7
def download(attributes = {})
  certificate_downloader.fetch(resource_id, attributes)
end
download_content() click to toggle source
# File lib/digicert/certificate.rb, line 11
def download_content
  certificate_downloader.fetch_content(resource_id)
end
download_to_path(path:, ext: "zip", **attributes) click to toggle source
# File lib/digicert/certificate.rb, line 23
def download_to_path(path:, ext: "zip", **attributes)
  certificate_downloader.fetch_to_path(
    resource_id, attributes.merge(path: path, ext: ext)
  )
end
revoke() click to toggle source
# File lib/digicert/certificate.rb, line 15
def revoke
  request_klass.new(:put, revocation_path, attributes).parse
end

Private Instance Methods

certificate_downloader() click to toggle source
# File lib/digicert/certificate.rb, line 39
def certificate_downloader
  Digicert::CertificateDownloader
end
resource_path() click to toggle source
# File lib/digicert/certificate.rb, line 31
def resource_path
  "certificate"
end
revocation_path() click to toggle source
# File lib/digicert/certificate.rb, line 35
def revocation_path
  [resource_path, resource_id, "revoke"].join("/")
end