You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: certificate.rb
    path of file: ./repos/fastlane/spaceship/lib/spaceship/connect_api/models
    
    the code of the file until where you have to start completion: require_relative '../../connect_api'

require 'openssl'

module Spaceship
  class ConnectAPI
    class Certificate
  
    
      def self.create(client: nil, certificate_type: nil, csr_content: nil)
        client ||= Spaceship::ConnectAPI
        attributes = {
          certificateType: certificate_type,
          csrContent: csr_content
        }
        resp = client.post_certificate(attributes: attributes)
        return resp.to_models.first
      end