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.
621 622 623 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 621 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
614 615 616 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 614 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
619 620 621 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 619 def market @market end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
626 627 628 629 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 626 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 |