Sha256: 23a85938a603bdee828237cf7863f68b3c25c0b353d559f1f46c417f3e376725
Contents?: true
Size: 1.13 KB
Versions: 22
Compression:
Stored size: 1.13 KB
Contents
# require "bim360/version" unless defined?(Nearmiss::VERSION) # require 'bim360/response/raise_error' module Toolhound # Default configuration options for {Client} module Default # Default User Agent header string PORT = 1433.freeze class << self # Configuration options # @return [Hash] def options Hash[Toolhound::Configurable.keys.map{|key| [key, send(key)]}] end def config @config ||= {} end # Default API endpoint from ENV or {API_ENDPOINT} # @return [String] def dataserver ENV['TOOLHOUND_DATASERVER'] || config['dataserver'] end def port ENV['TOOLHOUND_PORT'] || config['port'] || PORT end # Default BIM360-Field username for Basic Auth from ENV # @return [String] def username ENV['TOOLHOUND_USERNAME'] || config['username'] # ENV['NEARMISS_EMAIL'] || config['email'] end # Default BIM360-Field password for Basic Auth from ENV # @return [String] def password ENV['TOOLHOUND_PASSWORD'] || config['password'] end end end end
Version data entries
22 entries across 22 versions & 1 rubygems