Sha256: 3c3974961006363941aec67d4582fbf6c61a7fd6d9a2ace61950fcb900ba5d2b

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

module Packagecloud
  class Connection
    attr_reader :scheme, :host, :port, :connect_timeout, :read_timeout, :write_timeout

    def initialize(scheme="https", host="packagecloud.io", port="443", options={})
      @scheme = scheme
      @host = host
      @port = port

      @connect_timeout = options[:connect_timeout] || 60
      @read_timeout = options[:read_timeout] || 60
      @write_timeout = options[:write_timeout] || 180
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
travis-packagecloud-ruby-1.1.0 lib/packagecloud/connection.rb
packagecloud-ruby-1.0.8 lib/packagecloud/connection.rb
packagecloud-ruby-1.0.6 lib/packagecloud/connection.rb
packagecloud-ruby-1.0.5 lib/packagecloud/connection.rb
packagecloud-ruby-1.0.4 lib/packagecloud/connection.rb