class Google::Apis::QpxExpressV1::FlightInfo

A flight is a sequence of legs with the same airline carrier and flight number. (A leg is the smallest unit of travel, in the case of a flight a takeoff immediately followed by a landing at two set points on a particular carrier with a particular flight number.) The naive view is that a flight is scheduled travel of an aircraft between two points, with possibly intermediate stops, but carriers will frequently list flights that require a change of aircraft between legs.

Attributes

carrier[RW]

Corresponds to the JSON property `carrier` @return [String]

number[RW]

The flight number. Corresponds to the JSON property `number` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 348
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/qpx_express_v1/classes.rb, line 353
def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @number = args[:number] if args.key?(:number)
end