Class: Google::Apis::WalletobjectsV1::BoardingAndSeatingInfo
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::BoardingAndSeatingInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Instance Attribute Summary collapse
-
#boarding_door ⇒ String
Set this field only if this flight boards through more than one door or bridge and you want to explicitly print the door location on the boarding pass.
-
#boarding_group ⇒ String
The value of boarding group (or zone) this passenger shall board with.
-
#boarding_position ⇒ String
The value of boarding position.
-
#boarding_privilege_image ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#seat_assignment ⇒ Google::Apis::WalletobjectsV1::LocalizedString
The passenger’s seat assignment.
-
#seat_class ⇒ String
The value of the seat class.
-
#seat_number ⇒ String
The value of passenger seat.
-
#sequence_number ⇒ String
The sequence number on the boarding pass.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BoardingAndSeatingInfo
constructor
A new instance of BoardingAndSeatingInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BoardingAndSeatingInfo
Returns a new instance of BoardingAndSeatingInfo.
457 458 459 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boarding_door ⇒ String
Set this field only if this flight boards through more than one door or bridge
and you want to explicitly print the door location on the boarding pass. Most
airlines route their passengers to the right door or bridge by refering to
doors/bridges by the seatClass
. In those cases boardingDoor
should not be
set.
Corresponds to the JSON property boardingDoor
408 409 410 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 408 def boarding_door @boarding_door end |
#boarding_group ⇒ String
The value of boarding group (or zone) this passenger shall board with. eg: “B”
The label for this value will be determined by the boardingPolicy
field in
the flightClass
referenced by this object.
Corresponds to the JSON property boardingGroup
415 416 417 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 415 def boarding_group @boarding_group end |
#boarding_position ⇒ String
The value of boarding position. eg: “76”
Corresponds to the JSON property boardingPosition
420 421 422 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 420 def boarding_position @boarding_position end |
#boarding_privilege_image ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images. Next ID: 7
Corresponds to the JSON property boardingPrivilegeImage
425 426 427 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 425 def boarding_privilege_image @boarding_privilege_image end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#boardingAndSeatingInfo"
.
Corresponds to the JSON property kind
431 432 433 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 431 def kind @kind end |
#seat_assignment ⇒ Google::Apis::WalletobjectsV1::LocalizedString
The passenger’s seat assignment. To be used when there is no specific
identifier to use in seatNumber
. eg: “assigned at gate”
Corresponds to the JSON property seatAssignment
437 438 439 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 437 def seat_assignment @seat_assignment end |
#seat_class ⇒ String
The value of the seat class. eg: “Economy” or “Economy Plus”
Corresponds to the JSON property seatClass
442 443 444 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 442 def seat_class @seat_class end |
#seat_number ⇒ String
The value of passenger seat. If there is no specific identifier, use `
seatAssignment instead. eg: "25A"
Corresponds to the JSON property
seatNumber`
448 449 450 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 448 def seat_number @seat_number end |
#sequence_number ⇒ String
The sequence number on the boarding pass. This usually matches the sequence in
which the passengers checked in. Airline might use the number for manual
boarding and bag tags. eg: “49”
Corresponds to the JSON property sequenceNumber
455 456 457 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 455 def sequence_number @sequence_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
462 463 464 465 466 467 468 469 470 471 472 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 462 def update!(**args) @boarding_door = args[:boarding_door] if args.key?(:boarding_door) @boarding_group = args[:boarding_group] if args.key?(:boarding_group) @boarding_position = args[:boarding_position] if args.key?(:boarding_position) @boarding_privilege_image = args[:boarding_privilege_image] if args.key?(:boarding_privilege_image) @kind = args[:kind] if args.key?(:kind) @seat_assignment = args[:seat_assignment] if args.key?(:seat_assignment) @seat_class = args[:seat_class] if args.key?(:seat_class) @seat_number = args[:seat_number] if args.key?(:seat_number) @sequence_number = args[:sequence_number] if args.key?(:sequence_number) end |