Class: Google::Apis::QpxExpressV1::SegmentPricing
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::SegmentPricing
- 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
The price of this segment.
Instance Attribute Summary collapse
-
#fare_id ⇒ String
A segment identifier unique within a single solution.
-
#free_baggage_option ⇒ Array<Google::Apis::QpxExpressV1::FreeBaggageAllowance>
Details of the free baggage allowance on this segment.
-
#kind ⇒ String
Identifies this as a segment pricing object, representing the price of this segment.
-
#segment_id ⇒ String
Unique identifier in the response of this segment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SegmentPricing
constructor
A new instance of SegmentPricing.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SegmentPricing
Returns a new instance of SegmentPricing
823 824 825 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 823 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fare_id ⇒ String
A segment identifier unique within a single solution. It is used to refer to
different parts of the same solution.
Corresponds to the JSON property fareId
805 806 807 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 805 def fare_id @fare_id end |
#free_baggage_option ⇒ Array<Google::Apis::QpxExpressV1::FreeBaggageAllowance>
Details of the free baggage allowance on this segment.
Corresponds to the JSON property freeBaggageOption
810 811 812 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 810 def free_baggage_option @free_baggage_option end |
#kind ⇒ String
Identifies this as a segment pricing object, representing the price of this
segment. Value: the fixed string qpxexpress#segmentPricing.
Corresponds to the JSON property kind
816 817 818 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 816 def kind @kind end |
#segment_id ⇒ String
Unique identifier in the response of this segment.
Corresponds to the JSON property segmentId
821 822 823 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 821 def segment_id @segment_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
828 829 830 831 832 833 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 828 def update!(**args) @fare_id = args[:fare_id] if args.key?(:fare_id) @free_baggage_option = args[:free_baggage_option] if args.key?(:free_baggage_option) @kind = args[:kind] if args.key?(:kind) @segment_id = args[:segment_id] if args.key?(:segment_id) end |