Created
February 17, 2017 17:59
-
-
Save RX14/2aaceb7df340c5784c5eb335c4ada526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "json" | |
class Config | |
getter database_url : String | |
getter listen_port = 8088 | |
getter listen_address = "127.0.0.1" | |
getter(api_base_url : String) { "http://localhost:#{listen_port}" } | |
JSON.mapping | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment