code: function Resource ( config, vault ) {
    if ( !config || !vault ) throw new Error('config and vault are required')
    this.config = _init( config, vault )
    this.vault = vault
    return this
  }
docs: Resource constructor