Created
April 9, 2019 22:35
-
-
Save romyilano/e26f77ecaba49a9ac9430f9cc86e7cd5 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
// brushing up on url components | |
// | |
class CryptoApi { | |
static let host = "min-api.cryptocompare.com" | |
static let allCoinsPath = "/data/all/coinlist" | |
var allCoinsUrl: URL? = { | |
var urlComponents = URLComponents() | |
urlComponents.scheme = "https" | |
urlComponents.host = CryptoApi.host | |
urlComponents.path = CryptoApi.allCoinsPath | |
return urlComponents.url | |
}() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment