module Strife::Default
Constants
- API_ENDPOINT
- MEDIA_TYPE
- MIDDLEWARE
- REGION
- USER_AGENT
Public Class Methods
api_endpoint()
click to toggle source
# File lib/strife/default.rb, line 31 def api_endpoint ENV['STRIFE_API_ENDPOINT'] || API_ENDPOINT end
api_key()
click to toggle source
# File lib/strife/default.rb, line 27 def api_key ENV['STRIFE_API_KEY'] end
connection_options()
click to toggle source
# File lib/strife/default.rb, line 47 def connection_options { headers: { accept: default_media_type, user_agent: user_agent } } end
default_media_type()
click to toggle source
# File lib/strife/default.rb, line 39 def default_media_type ENV['STRIFE_DEFAULT_MEDIA_TYPE'] || MEDIA_TYPE end
middleware()
click to toggle source
# File lib/strife/default.rb, line 43 def middleware MIDDLEWARE end
options()
click to toggle source
# File lib/strife/default.rb, line 23 def options Hash[Strife::Configurable.keys.map {|key| [key, send(key)]}] end
region()
click to toggle source
# File lib/strife/default.rb, line 56 def region ENV['STRIFE_REGION'] || REGION end
user_agent()
click to toggle source
# File lib/strife/default.rb, line 35 def user_agent ENV['STRIFE_USER_AGENT'] || USER_AGENT end