Class: Google::Apis::QpxExpressV1::TripOption
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::TripOption
- 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
Trip information.
Instance Attribute Summary collapse
-
#id ⇒ String
Identifier uniquely identifying this trip in a response.
-
#kind ⇒ String
Identifies this as a trip information object.
-
#pricing ⇒ Array<Google::Apis::QpxExpressV1::PricingInfo>
Per passenger pricing information.
-
#sale_total ⇒ String
The total price for all passengers on the trip, in the form of a currency followed by an amount, e.g.
-
#slice ⇒ Array<Google::Apis::QpxExpressV1::SliceInfo>
The slices that make up this trip's itinerary.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TripOption
constructor
A new instance of TripOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TripOption
Returns a new instance of TripOption
1109 1110 1111 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1109 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Identifier uniquely identifying this trip in a response.
Corresponds to the JSON property id
1085 1086 1087 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1085 def id @id end |
#kind ⇒ String
Identifies this as a trip information object. Value: the fixed string
qpxexpress#tripOption.
Corresponds to the JSON property kind
1091 1092 1093 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1091 def kind @kind end |
#pricing ⇒ Array<Google::Apis::QpxExpressV1::PricingInfo>
Per passenger pricing information.
Corresponds to the JSON property pricing
1096 1097 1098 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1096 def pricing @pricing end |
#sale_total ⇒ String
The total price for all passengers on the trip, in the form of a currency
followed by an amount, e.g. USD253.35.
Corresponds to the JSON property saleTotal
1102 1103 1104 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1102 def sale_total @sale_total end |
#slice ⇒ Array<Google::Apis::QpxExpressV1::SliceInfo>
The slices that make up this trip's itinerary.
Corresponds to the JSON property slice
1107 1108 1109 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1107 def slice @slice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1114 1115 1116 1117 1118 1119 1120 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1114 def update!(**args) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @pricing = args[:pricing] if args.key?(:pricing) @sale_total = args[:sale_total] if args.key?(:sale_total) @slice = args[:slice] if args.key?(:slice) end |