Class: Google::Apis::WalletobjectsV1::BoardingAndSeatingPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_policyString

Indicates the policy the airline uses for boarding. If unset, Google will default to zoneBased. Corresponds to the JSON property boardingPolicy

Returns:

  • (String)


477
478
479
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 477

def boarding_policy
  @boarding_policy
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#boardingAndSeatingPolicy". Corresponds to the JSON property kind

Returns:

  • (String)


483
484
485
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 483

def kind
  @kind
end

#seat_class_policyString

Seating policy which dictates how we display the seat class. If unset, Google will default to cabinBased. Corresponds to the JSON property seatClassPolicy

Returns:

  • (String)


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