Module: Halo::Configuration
- Included in:
- Halo
- Defined in:
- lib/halo-api/configuration.rb
Constant Summary collapse
- OPTIONS =
%i[api_key region].freeze
- DEFAULT_API_KEY =
nil- DEFAULT_REGION =
:en
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
11 12 13 |
# File 'lib/halo-api/configuration.rb', line 11 def configure yield self end |
#options ⇒ Object
15 16 17 18 19 |
# File 'lib/halo-api/configuration.rb', line 15 def OPTIONS.inject({}) do |option, key| option.merge!(key => send(key)) end end |