The FMPTable.Builder class is a builder for the FMPTable class.
class Builder
Method | Description |
name(_:) | Save table name to variable. func name(_ name: String) -> Builder Parameters:
|
resource(_:) | Save the resource, which contains table, to variable. func resource(_ resource: FMPResource) -> Builder Parameters:
|
build() | Build an instance of the FMPTable class. It returns the object of the FMPTable type. func build() -> FMPTable |
Build an instance of the FMPTable class:
// Build an instance of the FMPResource class. For details see examples for FMPResource.Builder.
let resource: FMPResource = fmp.resource.build()
// Build an instance of the FMPTable class
let table: FMPTable = fmp.table
.name("name") // By default ""
.resource(resource) // By default nil
.build()
See also: