module Toolhound::Default

Default configuration options for {Client}

Constants

PORT

Default User Agent header string

Public Class Methods

config() click to toggle source
# File lib/toolhound-ruby/default.rb, line 24
def config
  @config ||= {}
end
dataserver() click to toggle source

Default API endpoint from ENV or {API_ENDPOINT} @return [String]

# File lib/toolhound-ruby/default.rb, line 30
def dataserver
  ENV['TOOLHOUND_DATASERVER'] || config['dataserver']
end
options() click to toggle source

Configuration options @return [Hash]

# File lib/toolhound-ruby/default.rb, line 18
def options
  Hash[Toolhound::Configurable.keys.map{|key| [key, send(key)]}]
end
password() click to toggle source

Default BIM360-Field password for Basic Auth from ENV @return [String]

# File lib/toolhound-ruby/default.rb, line 50
def password
  ENV['TOOLHOUND_PASSWORD'] || config['password']
end
port() click to toggle source
# File lib/toolhound-ruby/default.rb, line 34
def port
  ENV['TOOLHOUND_PORT'] || config['port'] || PORT
end
timeout() click to toggle source
# File lib/toolhound-ruby/default.rb, line 45
def timeout
  config['timeout'] || 10
end
username() click to toggle source

Default BIM360-Field username for Basic Auth from ENV @return [String]

# File lib/toolhound-ruby/default.rb, line 40
def username
  ENV['TOOLHOUND_USERNAME'] || config['username']
  # ENV['NEARMISS_EMAIL'] || config['email']
end