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.



497
498
499
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 497

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)


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

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)


489
490
491
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 489

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)


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