module Cryptoprocessing::Default
Constants
Public Class Methods
access_token()
click to toggle source
Default
access token from ENV @return [String]
# File lib/cryptoprocessing/default.rb, line 26 def access_token ENV['CRYPTOPROCESSING_ACCESS_TOKEN'] end
api_endpoint()
click to toggle source
Default
API endpoint from ENV or {API_ENDPOINT} @return [String]
# File lib/cryptoprocessing/default.rb, line 32 def api_endpoint ENV['CRYPTOPROCESSING_API_ENDPOINT'] || API_ENDPOINT end
api_namespace()
click to toggle source
Default
API namespace from ENV or {API_NAMESPACE} @return [String]
# File lib/cryptoprocessing/default.rb, line 38 def api_namespace ENV['CRYPTOPROCESSING_API_NAMESPACE'] || API_NAMESPACE end
blockchain_type()
click to toggle source
# File lib/cryptoprocessing/default.rb, line 42 def blockchain_type ENV['CRYPTOPROCESSING_BLOCKCHAIN_TYPE'] || BLOCKCHAIN_TYPE end
email()
click to toggle source
Default
Cryptoprocessing
email for Auth from ENV @return [String]
# File lib/cryptoprocessing/default.rb, line 48 def email ENV['CRYPTOPROCESSING_EMAIL'] end
netrc()
click to toggle source
Default
behavior for reading .netrc file @return [Boolean]
# File lib/cryptoprocessing/default.rb, line 66 def netrc ENV['CRYPTOPROCESSING_NETRC'] || false end
netrc_file()
click to toggle source
Default
path for .netrc file @return [String]
# File lib/cryptoprocessing/default.rb, line 72 def netrc_file ENV['CRYPTOPROCESSING_NETRC_FILE'] || File.join(ENV['HOME'].to_s, '.netrc') end
options()
click to toggle source
Configuration options @return [Hash]
# File lib/cryptoprocessing/default.rb, line 20 def options Hash[Cryptoprocessing::Configurable.keys.map{|key| [key, send(key)]}] end
password()
click to toggle source
Default
Cryptoprocessing
password for Auth from ENV @return [String]
# File lib/cryptoprocessing/default.rb, line 54 def password ENV['CRYPTOPROCESSING_PASSWORD'] end
user_agent()
click to toggle source
Default
User-Agent header string from ENV or {USER_AGENT} @return [String]
# File lib/cryptoprocessing/default.rb, line 60 def user_agent ENV['CRYPTOPROCESSING_USER_AGENT'] || USER_AGENT end