lib/thumbtack/adapters/basic_adapter.rb
# Construct a secure HTTP connection to the Pinboard API
#
# @param [String] host
#   the Pinboard API host
# @param [Fixnum] port
#   the Pinboard API port
# @return [Net::HTTP]
#   the connection
#
# @api private
Construct a secure HTTP connection to the Pinboard API
Construct a secure HTTP connection to the Pinboard API
def connection(host, port)
        Net::HTTP.new(host, port).tap do |connection|
          connection.use_ssl = true
          connection.ssl_version = SSL_VERSION
          connection.ciphers = SSL_CIPHERS
        end
      end
def connection ( host , port ) Net :: HTTP . new ( host , port ) . tap do | connection | connection . use_ssl = true connection . ssl_version = SSL_VERSION connection . ciphers = SSL_CIPHERS end end
Construct a secure HTTP connection to the Pinboard API
Construct a secure HTTP connection to the Pinboard API
None
Net::HTTP
host
<not_specific>
port
<not_specific>
<not_specific>
port the Pinboard API port
port the Pinboard API port
api
None