class Google::Apis::QpxExpressV1::LegInfo
Information about a leg. (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.)
Attributes
The aircraft (or bus, ferry, railcar, etc) travelling between the two points of this leg. Corresponds to the JSON property `aircraft` @return [String]
The scheduled time of arrival at the destination of the leg, local to the point of arrival. Corresponds to the JSON property `arrivalTime` @return [String]
Whether you have to change planes following this leg. Only applies to the next leg. Corresponds to the JSON property `changePlane` @return [Boolean]
Whether you have to change planes following this leg. Only applies to the next leg. Corresponds to the JSON property `changePlane` @return [Boolean]
Duration of a connection following this leg, in minutes. Corresponds to the JSON property `connectionDuration` @return [Fixnum]
The scheduled departure time of the leg, local to the point of departure. Corresponds to the JSON property `departureTime` @return [String]
The leg destination as a city and airport. Corresponds to the JSON property `destination` @return [String]
The terminal the flight is scheduled to arrive at. Corresponds to the JSON property `destinationTerminal` @return [String]
The scheduled travelling time from the origin to the destination. Corresponds to the JSON property `duration` @return [Fixnum]
An identifier that uniquely identifies this leg in the solution. Corresponds to the JSON property `id` @return [String]
Identifies this as a leg object. 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. Value: the fixed string qpxexpress#legInfo. Corresponds to the JSON property `kind` @return [String]
A simple, general description of the meal(s) served on the flight, for example: “Hot meal”. Corresponds to the JSON property `meal` @return [String]
The number of miles in this leg. Corresponds to the JSON property `mileage` @return [Fixnum]
In percent, the published on time performance on this leg. Corresponds to the JSON property `onTimePerformance` @return [Fixnum]
Department of Transportation disclosure information on the actual operator of a flight in a code share. (A code share refers to a marketing agreement between two carriers, where one carrier will list in its schedules (and take bookings for) flights that are actually operated by another carrier.) Corresponds to the JSON property `operatingDisclosure` @return [String]
The leg origin as a city and airport. Corresponds to the JSON property `origin` @return [String]
The terminal the flight is scheduled to depart from. Corresponds to the JSON property `originTerminal` @return [String]
Whether passenger information must be furnished to the United States Transportation Security Administration (TSA) prior to departure. Corresponds to the JSON property `secure` @return [Boolean]
Whether passenger information must be furnished to the United States Transportation Security Administration (TSA) prior to departure. Corresponds to the JSON property `secure` @return [Boolean]
Public Class Methods
# File generated/google/apis/qpx_express_v1/classes.rb, line 514 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/qpx_express_v1/classes.rb, line 519 def update!(**args) @aircraft = args[:aircraft] if args.key?(:aircraft) @arrival_time = args[:arrival_time] if args.key?(:arrival_time) @change_plane = args[:change_plane] if args.key?(:change_plane) @connection_duration = args[:connection_duration] if args.key?(:connection_duration) @departure_time = args[:departure_time] if args.key?(:departure_time) @destination = args[:destination] if args.key?(:destination) @destination_terminal = args[:destination_terminal] if args.key?(:destination_terminal) @duration = args[:duration] if args.key?(:duration) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @meal = args[:meal] if args.key?(:meal) @mileage = args[:mileage] if args.key?(:mileage) @on_time_performance = args[:on_time_performance] if args.key?(:on_time_performance) @operating_disclosure = args[:operating_disclosure] if args.key?(:operating_disclosure) @origin = args[:origin] if args.key?(:origin) @origin_terminal = args[:origin_terminal] if args.key?(:origin_terminal) @secure = args[:secure] if args.key?(:secure) end