Sha256: 41bce0b5f9230083650bf4ad0cdddd69df2cd1f6e34159ae777e8002f5a8eef2
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
# Copyright 2018 Daniel Herzog # Use of this source code is governed by an MIT # license that can be found in the LICENSE.md file. # frozen_string_literal: true module DeepL class API attr_reader :configuration, :http_client def initialize(configuration) @configuration = configuration configuration.validate! uri = URI(configuration.host) @http_client = Net::HTTP.new(uri.host, uri.port) @http_client.use_ssl = uri.scheme == 'https' end def update_http_client(client) @http_client = client end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
deepl-rb-3.1.0 | lib/deepl/api.rb |
deepl-rb-3.0.2 | lib/deepl/api.rb |
deepl-rb-3.0.1 | lib/deepl/api.rb |
deepl-rb-3.0.0 | lib/deepl/api.rb |