Class: Google::Apis::QpxExpressV1::FlightInfo
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::FlightInfo
- 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
-
#carrier ⇒ String
Corresponds to the JSON property
carrier
. -
#number ⇒ String
The flight number.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FlightInfo
constructor
A new instance of FlightInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#carrier ⇒ String
Corresponds to the JSON property carrier
341 342 343 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 341 def carrier @carrier end |
#number ⇒ String
The flight number.
Corresponds to the JSON property number
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 |