TaxiBuilder
public class TaxiBuilder
extension TransportSpecification.TaxiBuilder: NativeBase
extension TransportSpecification.TaxiBuilder: Hashable
This class constructs a TransportSpecification for a taxi.
-
Creates a new instance of this class.
Declaration
Swift
public init() -
Sets the taxi specification.
Declaration
Swift
public func withTaxiSpecification(_ taxiSpecification: TaxiSpecification) -> TransportSpecification.TaxiBuilderParameters
taxiSpecificationThe taxi specification.
Return Value
The
TransportSpecification.TaxiBuilderobject with the taxi specification set to the new value. -
Sets the vehicle specification.
Declaration
Swift
public func withVehicleSpecification(_ vehicleSpecification: VehicleSpecification) -> TransportSpecification.TaxiBuilderParameters
vehicleSpecificationThe vehicle specification.
Return Value
The
TransportSpecification.TaxiBuilderobject with the vehicle specification set to the new value. -
Builds the
TransportSpecificationobject for a taxi with the specifications taken from theTransportSpecification.TaxiBuilderobject.Declaration
Swift
public func build() -> TransportSpecificationReturn Value
The
TransportSpecificationobject created from theTransportSpecification.TaxiBuilderobject.