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.ScooterBuilderParameters
scooterSpecificationThe scooter specification.
Return Value
The
TransportSpecification.ScooterBuilderobject with the scooter specification set to the new value. -
Sets the vehicle specification.
Declaration
Swift
public func withVehicleSpecification(_ vehicleSpecification: VehicleSpecification) -> TransportSpecification.ScooterBuilderParameters
vehicleSpecificationThe vehicle specification.
Return Value
The
TransportSpecification.ScooterBuilderobject with the vehicle specification set to the new value. -
Builds the
TransportSpecificationobject for a scooter with the specifications taken from theTransportSpecification.ScooterBuilderobject.Declaration
Swift
public func build() -> TransportSpecificationReturn Value
The
TransportSpecificationobject created from theTransportSpecification.ScooterBuilderobject.