Sha256: 9f5c6f8ef22c442ab6324c48884438edb0ff36a52d3c18661e814def59c1e0dc

Contents?: true

Size: 404 Bytes

Versions: 5

Compression:

Stored size: 404 Bytes

Contents

# encoding: utf-8

module Sonar
  module Certificate
    ##
    # Get certificate based on sha1 id
    # /api/v2/certificates/1e80c24b97c928bb1db7d4d3c05475a6a40a1186
    #
    # @return [Hashie::Mash] with response of certificate
    def get_certificate(options = {})
      response = get("/api/#{Sonar.api_version}/certificates/#{options[:sha1]}", options)
      response if response
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sonar-client-0.0.5 lib/sonar/certificate.rb
sonar-client-0.0.4 lib/sonar/certificate.rb
sonar-client-0.0.3 lib/sonar/certificate.rb
sonar-client-0.0.2 lib/sonar/certificate.rb
sonar-client-0.0.1 lib/sonar/certificate.rb