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

Yields:

  • (_self)

Yield Parameters:



11
12
13
# File 'lib/halo-api/configuration.rb', line 11

def configure
  yield self
end

#optionsObject



15
16
17
18
19
# File 'lib/halo-api/configuration.rb', line 15

def options
  OPTIONS.inject({}) do |option, key|
    option.merge!(key => send(key))
  end
end