Skip to content

build

Builds the NautilusAsset that was configured using this builder instance.

Usage

import { AssetBuilder } from '@deltadao/nautilus'
 
const assetBuilder = new AssetBuilder()
 
assetBuilder.setName('Test') 
assetBuilder.setDescription('My description') 
assetBuilder.build() 
ddo.metadata:
{
name: 'Test',
description: 'My description'
}

Returns

  • NautilusAsset

The built asset with all data that was set using the builder functions. This can then be used in publish() or edit() calls respectively.