Class: Google::Apis::TravelimpactmodelV1::SeatAreaRatioData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/travelimpactmodel_v1/classes.rb,
lib/google/apis/travelimpactmodel_v1/representations.rb,
lib/google/apis/travelimpactmodel_v1/representations.rb

Overview

Seat area ratio data values. Economy is always 1.0 and serves as the reference point; other class values are relative to economy. All 4 fields are always set whether the seating class exists on the aircraft or not.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SeatAreaRatioData

Returns a new instance of SeatAreaRatioData.



934
935
936
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 934

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

Instance Attribute Details

#businessFloat

Output only. Business seating class data value. Corresponds to the JSON property business

Returns:

  • (Float)


917
918
919
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 917

def business
  @business
end

#economyFloat

Output only. Economy seating class data value. Corresponds to the JSON property economy

Returns:

  • (Float)


922
923
924
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 922

def economy
  @economy
end

#firstFloat

Output only. First seating class data value. Corresponds to the JSON property first

Returns:

  • (Float)


927
928
929
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 927

def first
  @first
end

#premium_economyFloat

Output only. Premium economy seating class data value. Corresponds to the JSON property premiumEconomy

Returns:

  • (Float)


932
933
934
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 932

def premium_economy
  @premium_economy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



939
940
941
942
943
944
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 939

def update!(**args)
  @business = args[:business] if args.key?(:business)
  @economy = args[:economy] if args.key?(:economy)
  @first = args[:first] if args.key?(:first)
  @premium_economy = args[:premium_economy] if args.key?(:premium_economy)
end