Class: Google::Apis::QpxExpressV1::FareInfo
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::FareInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb
Overview
Complete information about a fare used in the solution to a low-fare search query. In the airline industry a fare is a price an airline charges for one- way travel between two points. A fare typically contains a carrier code, two city codes, a price, and a fare basis. (A fare basis is a one-to-eight character alphanumeric code used to identify a fare.)
Instance Attribute Summary collapse
-
#basis_code ⇒ String
Corresponds to the JSON property
basisCode
. -
#carrier ⇒ String
The carrier of the aircraft or other vehicle commuting between two points.
-
#destination ⇒ String
The city code of the city the trip ends at.
-
#id ⇒ String
A unique identifier of the fare.
-
#kind ⇒ String
Identifies this as a fare object.
-
#origin ⇒ String
The city code of the city the trip begins at.
-
#private ⇒ Boolean
(also: #private?)
Whether this is a private fare, for example one offered only to select customers rather than the general public.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FareInfo
constructor
A new instance of FareInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FareInfo
Returns a new instance of FareInfo
312 313 314 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 312 def initialize(**args) update!(**args) end |
Instance Attribute Details
#basis_code ⇒ String
Corresponds to the JSON property basisCode
278 279 280 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 278 def basis_code @basis_code end |
#carrier ⇒ String
The carrier of the aircraft or other vehicle commuting between two points.
Corresponds to the JSON property carrier
283 284 285 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 283 def carrier @carrier end |
#destination ⇒ String
The city code of the city the trip ends at.
Corresponds to the JSON property destination
288 289 290 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 288 def destination @destination end |
#id ⇒ String
A unique identifier of the fare.
Corresponds to the JSON property id
293 294 295 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 293 def id @id end |
#kind ⇒ String
Identifies this as a fare object. Value: the fixed string qpxexpress#fareInfo.
Corresponds to the JSON property kind
298 299 300 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 298 def kind @kind end |
#origin ⇒ String
The city code of the city the trip begins at.
Corresponds to the JSON property origin
303 304 305 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 303 def origin @origin end |
#private ⇒ Boolean Also known as: private?
Whether this is a private fare, for example one offered only to select
customers rather than the general public.
Corresponds to the JSON property private
309 310 311 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 309 def private @private end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
317 318 319 320 321 322 323 324 325 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 317 def update!(**args) @basis_code = args[:basis_code] if args.key?(:basis_code) @carrier = args[:carrier] if args.key?(:carrier) @destination = args[:destination] if args.key?(:destination) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @origin = args[:origin] if args.key?(:origin) @private = args[:private] if args.key?(:private) end |