module Ecertic::Default
Constants
- BASE_URL
- USER_AGENT
Public Class Methods
apikey()
click to toggle source
# File lib/ecertic/default.rb, line 21 def apikey ENV["ECERTIC_APIKEY"] end
base_url()
click to toggle source
# File lib/ecertic/default.rb, line 17 def base_url ENV["ECERTIC_BASE_URL"] || BASE_URL end
keys()
click to toggle source
# File lib/ecertic/default.rb, line 9 def keys @keys ||= [ :base_url, :apikey, :secret, :user_agent ] end
options()
click to toggle source
# File lib/ecertic/default.rb, line 13 def options Hash[keys.map { |key| [key, send(key)] }] end
secret()
click to toggle source
# File lib/ecertic/default.rb, line 25 def secret ENV["ECERTIC_SECRET"] end
user_agent()
click to toggle source
# File lib/ecertic/default.rb, line 29 def user_agent ENV["ECERTIC_USER_AGENT"] end