Class: Google::Apis::TravelimpactmodelV1::SeatAreaRatioData
- Inherits:
-
Object
- Object
- Google::Apis::TravelimpactmodelV1::SeatAreaRatioData
- 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
-
#business ⇒ Float
Output only.
-
#economy ⇒ Float
Output only.
-
#first ⇒ Float
Output only.
-
#premium_economy ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SeatAreaRatioData
constructor
A new instance of SeatAreaRatioData.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#business ⇒ Float
Output only. Business seating class data value.
Corresponds to the JSON property business
917 918 919 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 917 def business @business end |
#economy ⇒ Float
Output only. Economy seating class data value.
Corresponds to the JSON property economy
922 923 924 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 922 def economy @economy end |
#first ⇒ Float
Output only. First seating class data value.
Corresponds to the JSON property first
927 928 929 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 927 def first @first end |
#premium_economy ⇒ Float
Output only. Premium economy seating class data value.
Corresponds to the JSON property premiumEconomy
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 |