Module: Battlenet::Configuration
- Included in:
- Battlenet
- Defined in:
- lib/battlenet/api/configuration.rb
Constant Summary collapse
- OPTIONS_KEYS =
[ :api_key, :region, :locale, :endpoint ].freeze
- DEFAULT_API_KEY =
nil- DEFAULT_ENDPOINT =
nil- DEFAULT_REGION =
:us- DEFAULT_LOCALE =
:en_US
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
18 19 20 |
# File 'lib/battlenet/api/configuration.rb', line 18 def configure yield self end |
#options ⇒ Object
22 23 24 25 26 |
# File 'lib/battlenet/api/configuration.rb', line 22 def OPTIONS_KEYS.inject({}) do |option, key| option.merge!(key => send(key)) end end |