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.
497 498 499 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 497 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
483 484 485 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 483 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
489 490 491 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 489 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
495 496 497 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 495 def seat_class_policy @seat_class_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
502 503 504 505 506 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 502 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 |