Sha256: 5e575f688161bd5bf0136be23ff22f8be2857ca93e082a79dc13e17d29d403d1
Contents?: true
Size: 1005 Bytes
Versions: 3
Compression:
Stored size: 1005 Bytes
Contents
require 'gem_config' require 'logger' module Itrp include GemConfig::Base with_configuration do has :logger, classes: ::Logger, default: ::Logger.new(STDOUT) has :host, classes: String, default: 'https://api.itrp.com' has :api_version, values: ['v1'], default: 'v1' has :api_token, classes: String has :account, classes: String has :source, classes: String has :max_retry_time, classes: Integer, default: 5400 has :read_timeout, classes: Integer, default: 25 has :block_at_rate_limit, classes: [TrueClass, FalseClass], default: false has :proxy_host, classes: String has :proxy_port, classes: Integer, default: 8080 has :proxy_user, classes: String has :proxy_password, classes: String has :ca_file, classes: String, default: '../ca-bundle.crt' end def self.logger configuration.logger end class Exception < ::Exception; end # ::Itrp::Exception class class UploadFailed < Exception; end # ::Itrp::UploadFailed class end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
itrp-client-1.1.5 | lib/itrp.rb |
itrp-client-1.1.4 | lib/itrp.rb |
itrp-client-1.1.3 | lib/itrp.rb |