Shopify/active_merchant

View on GitHub
lib/active_merchant/net_http_ssl_connection.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'net/http'

module NetHttpSslConnection
  refine Net::HTTP do
    def ssl_connection
      return {} unless use_ssl? && @socket.present?

      { version: @socket.io.ssl_version, cipher: @socket.io.cipher[0] }
    end
  end
end