class Google::Apis::QpxExpressV1::FareInfo

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.)

Attributes

basis_code[RW]

Corresponds to the JSON property `basisCode` @return [String]

carrier[RW]

The carrier of the aircraft or other vehicle commuting between two points. Corresponds to the JSON property `carrier` @return [String]

destination[RW]

The city code of the city the trip ends at. Corresponds to the JSON property `destination` @return [String]

id[RW]

A unique identifier of the fare. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies this as a fare object. Value: the fixed string qpxexpress#fareInfo. Corresponds to the JSON property `kind` @return [String]

origin[RW]

The city code of the city the trip begins at. Corresponds to the JSON property `origin` @return [String]

private[RW]

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` @return [Boolean]

private?[RW]

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` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 312
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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