defmodule Settings do
import Credentials
def minimum do
500
end
def account do
Credentials.account_private_key
end
def exclude do
['9wrQeUVUPE7cL12tYESEdeNbNqa535ftc7qNqTPXjqNv', '2tR9EKvDPMThfrFSb96CSBGYNwNPtzwkGcdhQjv4dVoj']
end
end
Is this the best way to create a settings file for use by multiple modules in an app?
Can’t tell what your requirements are but couldn’t you achieve the same by using Mix.Config? Every module in the app can then read from this config