Initializer

init(airport:terminal:gate:)

Creates a new gate object for a flight.

Declaration

init(airport: INAirport, terminal: String?, gate: String?)

Parameters

airport

The airport from which a flight departs or arrives.

terminal

The terminal from which a flight departs or arrives.

gate

The gate identifier.

Return Value

A new INAirportGate object or nil if one can’t be created.

Discussion

You must create a new INAirportGate object for both the arrival and departure gates associated with a flight.