Class: Google::Apis::WalletobjectsV1::FlightHeader
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::FlightHeader
- 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
-
#carrier ⇒ Google::Apis::WalletobjectsV1::FlightCarrier
Information about airline carrier.
-
#flight_number ⇒ String
The flight number without IATA carrier code.
-
#flight_number_display_override ⇒ String
Override value to use for flight number.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#operating_carrier ⇒ Google::Apis::WalletobjectsV1::FlightCarrier
Information about operating airline carrier.
-
#operating_flight_number ⇒ String
The flight number used by the operating carrier without IATA carrier code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FlightHeader
constructor
A new instance of FlightHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FlightHeader
Returns a new instance of FlightHeader.
2886 2887 2888 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2886 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ Google::Apis::WalletobjectsV1::FlightCarrier
Information about airline carrier. This is a required property of
flightHeader
.
Corresponds to the JSON property carrier
2853 2854 2855 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2853 def carrier @carrier end |
#flight_number ⇒ String
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
2859 2860 2861 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2859 def flight_number @flight_number end |
#flight_number_display_override ⇒ String
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
2867 2868 2869 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2867 def flight_number_display_override @flight_number_display_override end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#flightHeader"
.
Corresponds to the JSON property kind
2873 2874 2875 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2873 def kind @kind end |
#operating_carrier ⇒ Google::Apis::WalletobjectsV1::FlightCarrier
Information about operating airline carrier.
Corresponds to the JSON property operatingCarrier
2878 2879 2880 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2878 def @operating_carrier end |
#operating_flight_number ⇒ String
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
2884 2885 2886 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2884 def @operating_flight_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2891 2892 2893 2894 2895 2896 2897 2898 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2891 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 |