ScooterBuilder

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

This class constructs a TransportSpecification for a scooter.

  • Creates a new instance of this class.

    Declaration

    Swift

    public init()
  • Sets the scooter specification.

    Declaration

    Swift

    public func withScooterSpecification(_ scooterSpecification: ScooterSpecification) -> TransportSpecification.ScooterBuilder

    Parameters

    scooterSpecification

    The scooter specification.

    Return Value

    The TransportSpecification.ScooterBuilder object with the scooter specification set to the new value.

  • Sets the vehicle specification.

    Declaration

    Swift

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

    Parameters

    vehicleSpecification

    The vehicle specification.

    Return Value

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

  • Builds the TransportSpecification object for a scooter with the specifications taken from the TransportSpecification.ScooterBuilder object.

    Declaration

    Swift

    public func build() -> TransportSpecification

    Return Value

    The TransportSpecification object created from the TransportSpecification.ScooterBuilder object.