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.PrivateBusBuilderParameters
vehicleSpecificationThe vehicle specification.
Return Value
The
TransportSpecification.PrivateBusBuilderobject with the vehicle specification set to the new value. -
Builds the
TransportSpecificationobject for a private bus with the specifications taken from theTransportSpecification.PrivateBusBuilderobject.Declaration
Swift
public func build() -> TransportSpecificationReturn Value
The
TransportSpecificationobject created from theTransportSpecification.PrivateBusBuilderobject.