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.ScooterBuilder

    Parameters

    engineSizeInCubicCentimeters

    The vehicle engine size in cubic centimeters.

    Return Value

    The VehicleSpecification.ScooterBuilder object with the engine size set to the new value.

  • Sets the vehicle occupants number.

    Declaration

    Swift

    public func withOccupancy(_ occupancy: Int32) -> VehicleSpecification.ScooterBuilder

    Parameters

    occupancy

    The vehicle occupants number.

    Return Value

    The VehicleSpecification.ScooterBuilder object with the vehicle occupants number set to the new value.

  • Builds the VehicleSpecification object for TransportMode.scooter with the specifications taken from the VehicleSpecification.ScooterBuilder object.

    Declaration

    Swift

    public func build() -> VehicleSpecification

    Return Value

    The VehicleSpecification object created from the VehicleSpecification.ScooterBuilder object.