Class: Google::Apis::QpxExpressV1::SearchTripsResponse

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

Returns a new instance of SearchTripsResponse.



1262
1263
1264
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1262

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

Instance Attribute Details

#kindString

Identifies this as a QPX Express API search response resource. Value: the fixed string qpxExpress#tripsSearch. Corresponds to the JSON property kind

Returns:

  • (String)


1255
1256
1257
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1255

def kind
  @kind
end

#tripsGoogle::Apis::QpxExpressV1::TripOptionsResponse

A QPX Express search response. Corresponds to the JSON property trips



1260
1261
1262
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1260

def trips
  @trips
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1267
1268
1269
1270
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1267

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