Class: Google::Apis::QpxExpressV1::FlightInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FlightInfo

Returns a new instance of FlightInfo



348
349
350
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 348

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#carrierString

Corresponds to the JSON property carrier

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 341

def carrier
  @carrier
end

#numberString

The flight number. Corresponds to the JSON property number

Returns:

  • (String)


346
347
348
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 346

def number
  @number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



353
354
355
356
# 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