class Object

Public Instance Methods

reload!() click to toggle source
# File lib/dev/zeitwerk_loader.rb, line 20
def reload!
  $__janio_api_loader__.reload
  set_config
  true
end
set_config() click to toggle source
# 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