Class: Mapboxkit::Configurable::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/mapboxkit/configurable.rb

Overview

Config for the Mapboxkit::Client

Constant Summary collapse

KEYS =
%i[url access_token user_agent].freeze

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



26
27
28
29
30
# File 'lib/mapboxkit/configurable.rb', line 26

def initialize
  @url          = 'https://api.mapbox.com'
  @access_token = ENV.fetch('MAPBOX_ACCESS_TOKEN', nil)
  @user_agent   = "Mapboxkit #{Mapboxkit::VERSION}"
end