PrivateBusBuilder

public class PrivateBusBuilder
extension TransportSpecification.PrivateBusBuilder: NativeBase
extension TransportSpecification.PrivateBusBuilder: Hashable

This class constructs a TransportSpecification for a private bus.

  • Creates a new instance of this class.

    Declaration

    Swift

    public init()
  • Sets the vehicle specification.

    Declaration

    Swift

    public func withVehicleSpecification(_ vehicleSpecification: VehicleSpecification) -> TransportSpecification.PrivateBusBuilder

    Parameters

    vehicleSpecification

    The vehicle specification.

    Return Value

    The TransportSpecification.PrivateBusBuilder object with the vehicle specification set to the new value.

  • Builds the TransportSpecification object for a private bus with the specifications taken from the TransportSpecification.PrivateBusBuilder object.

    Declaration

    Swift

    public func build() -> TransportSpecification

    Return Value

    The TransportSpecification object created from the TransportSpecification.PrivateBusBuilder object.