Sha256: 47f2fd51db9e181bf739155f86b96f9851e1ee0efa461af55f1b59fedbc3bcda
Contents?: true
Size: 937 Bytes
Versions: 6
Compression:
Stored size: 937 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: Fixnum, default: 5400 has :read_timeout, classes: Fixnum, default: 25 has :block_at_rate_limit, classes: [TrueClass, FalseClass], default: false has :proxy_host, classes: String has :proxy_port, classes: Fixnum, default: 8080 has :proxy_user, classes: String has :proxy_password, classes: String 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
itrp-client-1.0.5 | lib/itrp.rb |
itrp-client-1.0.4 | lib/itrp.rb |
itrp-client-1.0.3 | lib/itrp.rb |
itrp-client-1.0.2 | lib/itrp.rb |
itrp-client-1.0.1 | lib/itrp.rb |
itrp-client-1.0.0 | lib/itrp.rb |