Last active
March 17, 2019 01:50
-
-
Save tbelmega/cdd597d4ceb38bca8394e8235abb9f68 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
class PastaAppConfig( | |
val env0BaseURL: String, | |
val env1Name: String, | |
val env1BaseURL: String | |
) { | |
fun getBaseUrl(targetEnvironment: String): String { | |
return if (targetEnvironment === env1Name) env1BaseURL | |
else env0BaseURL | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment