class KOSapiClient::Configuration
Constants
- DEFAULT_OPTIONS
Public Class Methods
new(options = {})
click to toggle source
# File lib/kosapi_client/configuration.rb, line 8 def initialize(options = {}) DEFAULT_OPTIONS.merge(options).each do |option, value| self[option] = value end end
Public Instance Methods
credentials()
click to toggle source
# File lib/kosapi_client/configuration.rb, line 14 def credentials if client_id && client_secret {client_id: client_id, client_secret: client_secret} else {} end end