code: function(settings) {
  
      this.key = settings.key;
      this.endpoint = settings.endpoint;
  
      if (this.endpoint) {
          console.log(
              'Irelia has been updated to version 0.2 where we are using a new url system. You will have to update your config for using it. Check documentation at: '
              .cyan +
              'https://github.com/alexperezpaya/irelia'.underline.blue);
      }
  
      if (settings.debug === true) {
          this.debug = true;
      }
  
      this.secure = (settings.secure) ? settings.secure : false;
      this.host = settings.host;
      this.path = settings.path;
  
      return this;
  
  }
docs: Inits class and saves settings in it