Class: Google::Apis::QpxExpressV1::TripOptionsResponse

Inherits:
Object
  • Object
show all
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

A QPX Express search response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TripOptionsResponse

Returns a new instance of TripOptionsResponse.


1215
1216
1217
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1215

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

Instance Attribute Details

#dataGoogle::Apis::QpxExpressV1::Data

Detailed information about components found in the solutions of this response, including a trip's airport, city, taxes, airline, and aircraft. Corresponds to the JSON property data


1197
1198
1199
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1197

def data
  @data
end

#kindString

Identifies this as a QPX Express trip response object, which consists of zero or more solutions. Value: the fixed string qpxexpress#tripOptions. Corresponds to the JSON property kind

Returns:

  • (String)

1203
1204
1205
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1203

def kind
  @kind
end

#request_idString

An identifier uniquely identifying this response. Corresponds to the JSON property requestId

Returns:

  • (String)

1208
1209
1210
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1208

def request_id
  @request_id
end

#trip_optionArray<Google::Apis::QpxExpressV1::TripOption>

A list of priced itinerary solutions to the QPX Express query. Corresponds to the JSON property tripOption


1213
1214
1215
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1213

def trip_option
  @trip_option
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1220
1221
1222
1223
1224
1225
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1220

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @kind = args[:kind] if args.key?(:kind)
  @request_id = args[:request_id] if args.key?(:request_id)
  @trip_option = args[:trip_option] if args.key?(:trip_option)
end