Module: Sonar::Certificate

Included in:
Client
Defined in:
lib/sonar/certificate.rb

Instance Method Summary collapse

Instance Method Details

#get_certificate(options = {}) ⇒ Hashie::Mash

Get certificate based on sha1 id /api/v2/certificates/1e80c24b97c928bb1db7d4d3c05475a6a40a1186

Returns:

  • (Hashie::Mash)

    with response of certificate



10
11
12
13
# File 'lib/sonar/certificate.rb', line 10

def get_certificate(options = {})
  response = get("/api/#{Sonar.api_version}/certificates/#{options[:sha1]}", options)
  response if response
end