Class: Google::Apis::WalletobjectsV1::FlightHeader

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) ⇒ FlightHeader

Returns a new instance of FlightHeader.



2779
2780
2781
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2779

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#carrierGoogle::Apis::WalletobjectsV1::FlightCarrier

Information about airline carrier. This is a required property of flightHeader. Corresponds to the JSON property carrier



2746
2747
2748
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2746

def carrier
  @carrier
end

#flight_numberString

The flight number without IATA carrier code. This field should contain only digits. This is a required property of flightHeader. eg: "123" Corresponds to the JSON property flightNumber

Returns:

  • (String)


2752
2753
2754
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2752

def flight_number
  @flight_number
end

#flight_number_display_overrideString

Override value to use for flight number. The default value used for display purposes is carrier + flight_number. If a different value needs to be shown to passengers, use this field to override the default behavior. eg: "XX1234 / YY576" Corresponds to the JSON property flightNumberDisplayOverride

Returns:

  • (String)


2760
2761
2762
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2760

def flight_number_display_override
  @flight_number_display_override
end

#kindString

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

Returns:

  • (String)


2766
2767
2768
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2766

def kind
  @kind
end

#operating_carrierGoogle::Apis::WalletobjectsV1::FlightCarrier

Information about operating airline carrier. Corresponds to the JSON property operatingCarrier



2771
2772
2773
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2771

def operating_carrier
  @operating_carrier
end

#operating_flight_numberString

The flight number used by the operating carrier without IATA carrier code. This field should contain only digits. eg: "234" Corresponds to the JSON property operatingFlightNumber

Returns:

  • (String)


2777
2778
2779
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2777

def operating_flight_number
  @operating_flight_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2784
2785
2786
2787
2788
2789
2790
2791
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2784

def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @flight_number = args[:flight_number] if args.key?(:flight_number)
  @flight_number_display_override = args[:flight_number_display_override] if args.key?(:flight_number_display_override)
  @kind = args[:kind] if args.key?(:kind)
  @operating_carrier = args[:operating_carrier] if args.key?(:operating_carrier)
  @operating_flight_number = args[:operating_flight_number] if args.key?(:operating_flight_number)
end