      parameter when the json file has been fetched. It firstly
      checks in the clocal storage if it has already been fetched.
      */
-    public func getDictionnary(completion: @escaping (([String: Any]?, RessourceFetcher.RessourceFetchingError?) -> Void)) {
+    internal func getDictionnary(completion: @escaping (([String: Any]?, RessourceFetcher.RessourceFetchingError?) -> Void)) {
         if self.data != nil {
             completion(self.data, nil)
         } else {

    
    
    /// Downloads the configFile and store it locally. If a configFile is already saved, it's replaced.
    public func downloadConfigFile(completion: @escaping (([String: Any]?, RessourceFetcher.RessourceFetchingError?) -> Void)) {
        RessourceFetcher.shared.getJson(url: self.url, completion: { (json, error) -> Void in
            if (json != nil) {
                let defaults = UserDefaults.standard

 Manage to download, store and cache the json file
 used to parse the pages of the website.
 */
public class HNParseConfig {
    private let savingKey = "HNParseConfig"
    private let url = "https://raw.githubusercontent.com/tsucres/HNScraper/master/hn.json"
    private var _config: [String: Any]? = nil
