module Ivapi::Default
Default
configuration options for {Client}
Constants
Public Class Methods
api_endpoint()
click to toggle source
Default
API endpoint from ENV or {API_ENDPOINT} @return [String]
# File lib/ivapi/default.rb, line 81 def api_endpoint ENV['IVAPI_API_ENDPOINT'] || API_ENDPOINT end
connection_options()
click to toggle source
# File lib/ivapi/default.rb, line 65 def connection_options { headers: { user_agent: user_agent } } end
hosting_id()
click to toggle source
# File lib/ivapi/default.rb, line 48 def hosting_id nil end
middleware()
click to toggle source
Default
middleware stack for Faraday::Connection from {MIDDLEWARE} @return [String]
# File lib/ivapi/default.rb, line 55 def middleware MIDDLEWARE end
options()
click to toggle source
Configuration
options @return [Hash]
# File lib/ivapi/default.rb, line 34 def options Hash[Ivapi::Configuration.keys.map { |key| [key, send(key)] }] end
password()
click to toggle source
server_id()
click to toggle source
# File lib/ivapi/default.rb, line 44 def server_id nil end
user_agent()
click to toggle source
Default
User-Agent header string from ENV or {USER_AGENT} @return [String]
# File lib/ivapi/default.rb, line 75 def user_agent ENV['IVAPI_USER_AGENT'] || USER_AGENT end