ScooterBuilder
public class ScooterBuilder
extension VehicleSpecification.ScooterBuilder: NativeBase
extension VehicleSpecification.ScooterBuilder: Hashable
This class constructs a VehicleSpecification for a scooter.
-
Creates a new instance of this class.
Declaration
Swift
public init() -
Sets the vehicle engine size in cubic centimeters.
Declaration
Swift
public func withEngineSizeInCubicCentimeters(_ engineSizeInCubicCentimeters: Int32) -> VehicleSpecification.ScooterBuilderParameters
engineSizeInCubicCentimetersThe vehicle engine size in cubic centimeters.
Return Value
The
VehicleSpecification.ScooterBuilderobject with the engine size set to the new value. -
Sets the vehicle occupants number.
Declaration
Swift
public func withOccupancy(_ occupancy: Int32) -> VehicleSpecification.ScooterBuilderParameters
occupancyThe vehicle occupants number.
Return Value
The
VehicleSpecification.ScooterBuilderobject with the vehicle occupants number set to the new value. -
Builds the
VehicleSpecificationobject forTransportMode.scooterwith the specifications taken from theVehicleSpecification.ScooterBuilderobject.Declaration
Swift
public func build() -> VehicleSpecificationReturn Value
The
VehicleSpecificationobject created from theVehicleSpecification.ScooterBuilderobject.