class Google::Apis::QpxExpressV1::PassengerCounts
The number and type of passengers. Unfortunately the definition of an infant, child, adult, and senior citizen varies across carriers and reservation systems.
Attributes
The number of passengers that are adults. Corresponds to the JSON property `adultCount` @return [Fixnum]
The number of passengers that are children. Corresponds to the JSON property `childCount` @return [Fixnum]
The number of passengers that are infants travelling in the lap of an adult. Corresponds to the JSON property `infantInLapCount` @return [Fixnum]
The number of passengers that are infants each assigned a seat. Corresponds to the JSON property `infantInSeatCount` @return [Fixnum]
Identifies this as a passenger count object, representing the number of passengers. Value: the fixed string qpxexpress#passengerCounts. Corresponds to the JSON property `kind` @return [String]
The number of passengers that are senior citizens. Corresponds to the JSON property `seniorCount` @return [Fixnum]
Public Class Methods
# File generated/google/apis/qpx_express_v1/classes.rb, line 577 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/qpx_express_v1/classes.rb, line 582 def update!(**args) @adult_count = args[:adult_count] if args.key?(:adult_count) @child_count = args[:child_count] if args.key?(:child_count) @infant_in_lap_count = args[:infant_in_lap_count] if args.key?(:infant_in_lap_count) @infant_in_seat_count = args[:infant_in_seat_count] if args.key?(:infant_in_seat_count) @kind = args[:kind] if args.key?(:kind) @senior_count = args[:senior_count] if args.key?(:senior_count) end