TruckBuilder
public class TruckBuilder
extension TransportSpecification.TruckBuilder: NativeBase
extension TransportSpecification.TruckBuilder: Hashable
This class constructs a TransportSpecification for a truck.
-
Creates a new instance of this class.
Declaration
Swift
public init() -
Sets the vehicle specification.
Declaration
Swift
public func withVehicleSpecification(_ vehicleSpecification: VehicleSpecification) -> TransportSpecification.TruckBuilderParameters
vehicleSpecificationThe vehicle specification.
Return Value
The
TransportSpecification.CarBuilderobject with the vehicle specification set to the new value. -
Builds the
TransportSpecificationobject for a truck with the specifications taken from theTransportSpecification.TruckBuilderobject.Declaration
Swift
public func build() -> TransportSpecificationReturn Value
The
TransportSpecificationobject created from theTransportSpecification.TruckBuilderobject.