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