Class: Google::Apis::WalletobjectsV1::BoardingAndSeatingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::BoardingAndSeatingPolicy
- 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_policy ⇒ String
Indicates the policy the airline uses for boarding.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#seat_class_policy ⇒ String
Seating policy which dictates how we display the seat class.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BoardingAndSeatingPolicy
constructor
A new instance of BoardingAndSeatingPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BoardingAndSeatingPolicy
Returns a new instance of BoardingAndSeatingPolicy.
491 492 493 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 491 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boarding_policy ⇒ String
Indicates the policy the airline uses for boarding. If unset, Google will
default to zoneBased
.
Corresponds to the JSON property boardingPolicy
477 478 479 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 477 def boarding_policy @boarding_policy end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#boardingAndSeatingPolicy"
.
Corresponds to the JSON property kind
483 484 485 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 483 def kind @kind end |
#seat_class_policy ⇒ String
Seating policy which dictates how we display the seat class. If unset, Google
will default to cabinBased
.
Corresponds to the JSON property seatClassPolicy
489 490 491 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 489 def seat_class_policy @seat_class_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
496 497 498 499 500 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 496 def update!(**args) @boarding_policy = args[:boarding_policy] if args.key?(:boarding_policy) @kind = args[:kind] if args.key?(:kind) @seat_class_policy = args[:seat_class_policy] if args.key?(:seat_class_policy) end |