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

aircraft[RW]

The aircraft (or bus, ferry, railcar, etc) travelling between the two points of this leg. Corresponds to the JSON property `aircraft` @return [String]

arrival_time[RW]

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]

change_plane[RW]

Whether you have to change planes following this leg. Only applies to the next leg. Corresponds to the JSON property `changePlane` @return [Boolean]

change_plane?[RW]

Whether you have to change planes following this leg. Only applies to the next leg. Corresponds to the JSON property `changePlane` @return [Boolean]

connection_duration[RW]

Duration of a connection following this leg, in minutes. Corresponds to the JSON property `connectionDuration` @return [Fixnum]

departure_time[RW]

The scheduled departure time of the leg, local to the point of departure. Corresponds to the JSON property `departureTime` @return [String]

destination[RW]

The leg destination as a city and airport. Corresponds to the JSON property `destination` @return [String]

destination_terminal[RW]

The terminal the flight is scheduled to arrive at. Corresponds to the JSON property `destinationTerminal` @return [String]

duration[RW]

The scheduled travelling time from the origin to the destination. Corresponds to the JSON property `duration` @return [Fixnum]

id[RW]

An identifier that uniquely identifies this leg in the solution. Corresponds to the JSON property `id` @return [String]

kind[RW]

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]

meal[RW]

A simple, general description of the meal(s) served on the flight, for example: “Hot meal”. Corresponds to the JSON property `meal` @return [String]

mileage[RW]

The number of miles in this leg. Corresponds to the JSON property `mileage` @return [Fixnum]

on_time_performance[RW]

In percent, the published on time performance on this leg. Corresponds to the JSON property `onTimePerformance` @return [Fixnum]

operating_disclosure[RW]

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]

origin[RW]

The leg origin as a city and airport. Corresponds to the JSON property `origin` @return [String]

origin_terminal[RW]

The terminal the flight is scheduled to depart from. Corresponds to the JSON property `originTerminal` @return [String]

secure[RW]

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]

secure?[RW]

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

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 514
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 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