Class: Google::Apis::QpxExpressV1::SegmentPricing

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

The price of this segment.

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

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

Returns:

  • (String)

805
806
807
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 805

def fare_id
  @fare_id
end

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

#kindString

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

Returns:

  • (String)

816
817
818
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 816

def kind
  @kind
end

#segment_idString

Unique identifier in the response of this segment. Corresponds to the JSON property segmentId

Returns:

  • (String)

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