module Gamertag::Configuration
Constants
- DEFAULT_ADAPTER
- DEFAULT_API_VERSION
- DEFAULT_ENDPOINT_URL
- OPTION_KEYS
Public Class Methods
extended(base)
click to toggle source
# File lib/gamertag/configuration.rb, line 18 def self.extended(base) base.defaults end
Public Instance Methods
adapter=(adapter)
click to toggle source
# File lib/gamertag/configuration.rb, line 36 def adapter=(adapter) @adapter = adapter end
api_version=(api_version)
click to toggle source
# File lib/gamertag/configuration.rb, line 44 def api_version=(api_version) @api_version = api_version end
configure() { |self| ... }
click to toggle source
# File lib/gamertag/configuration.rb, line 22 def configure yield self end
defaults()
click to toggle source
# File lib/gamertag/configuration.rb, line 30 def defaults self.endpoint_url = DEFAULT_ENDPOINT_URL self.api_version = DEFAULT_API_VERSION self.adapter = DEFAULT_ADAPTER end
endpoint_url=(endpoint_url)
click to toggle source
# File lib/gamertag/configuration.rb, line 40 def endpoint_url=(endpoint_url) @endpoint_url = endpoint_url end
options()
click to toggle source
# File lib/gamertag/configuration.rb, line 26 def options OPTION_KEYS.inject({}){|o,k| o.merge!(k => send(k)) } end