Class: Google::Apis::TravelimpactmodelV1::TypicalFlightEmissions
- Inherits:
-
Object
- Object
- Google::Apis::TravelimpactmodelV1::TypicalFlightEmissions
- 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
Typical flight emission estimates for a certain market
Instance Attribute Summary collapse
-
#emissions_grams_per_pax ⇒ Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax
Grouped emissions per seating class results.
-
#market ⇒ Google::Apis::TravelimpactmodelV1::Market
A pair of airports.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TypicalFlightEmissions
constructor
A new instance of TypicalFlightEmissions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TypicalFlightEmissions
Returns a new instance of TypicalFlightEmissions.
961 962 963 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 961 def initialize(**args) update!(**args) end |
Instance Attribute Details
#emissions_grams_per_pax ⇒ Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax
Grouped emissions per seating class results.
Corresponds to the JSON property emissionsGramsPerPax
954 955 956 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 954 def emissions_grams_per_pax @emissions_grams_per_pax end |
#market ⇒ Google::Apis::TravelimpactmodelV1::Market
A pair of airports.
Corresponds to the JSON property market
959 960 961 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 959 def market @market end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
966 967 968 969 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 966 def update!(**args) @emissions_grams_per_pax = args[:emissions_grams_per_pax] if args.key?(:emissions_grams_per_pax) @market = args[:market] if args.key?(:market) end |