Class: Google::Apis::QpxExpressV1::TripOption

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

Trip information.

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

#idString

Identifier uniquely identifying this trip in a response. Corresponds to the JSON property id

Returns:

  • (String)


1085
1086
1087
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1085

def id
  @id
end

#kindString

Identifies this as a trip information object. Value: the fixed string qpxexpress#tripOption. Corresponds to the JSON property kind

Returns:

  • (String)


1091
1092
1093
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1091

def kind
  @kind
end

#pricingArray<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_totalString

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

Returns:

  • (String)


1102
1103
1104
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1102

def sale_total
  @sale_total
end

#sliceArray<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