FMPTable.Builder

Description

The FMPTable.Builder class is a builder for the FMPTable class.

class Builder

Methods

Method Description
name(_:) Save table name to variable.
func name(_ name: String) -> Builder

Parameters:

  • name. Table name.

resource(_:) Save the resource, which contains table, to variable.
func resource(_ resource: FMPResource) -> Builder

Parameters:

  • resource. Resource that contains table.

build() Build an instance of the FMPTable class. It returns the object of the FMPTable type.
func build() -> FMPTable

Example

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:

FMPWrapper Framework | Classes