Top Level Namespace

Defined Under Namespace

Modules: JanioAPI

Instance Method Summary collapse

Instance Method Details

#reload!Object



20
21
22
23
24
# File 'lib/dev/zeitwerk_loader.rb', line 20

def reload!
  $__janio_api_loader__.reload
  set_config
  true
end

#set_configObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/dev/config.rb', line 3

def set_config
  JanioAPI.configure do |config|
    config.api_host = ENV["API_HOST"]
    config.api_token = ENV["API_TOKEN"]
    # or
    # api_tokens take higher precedence than api_token
    # config.api_tokens = {
    #   MY: ENV["MY_API_TOKEN"],
    #   SG: ENV["SG_API_TOKEN"]
    # }
  end
end