Class: Google::Apis::TravelimpactmodelV1::ComputeDetailedFlightEmissionsResponse

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

Output definition for the ComputeDetailedFlightEmissions response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeDetailedFlightEmissionsResponse

Returns a new instance of ComputeDetailedFlightEmissionsResponse.



59
60
61
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 59

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

Instance Attribute Details

#flights_with_detailed_emissionsArray<Google::Apis::TravelimpactmodelV1::FlightWithDetailedEmissions>

List of flight legs with emission estimates. Corresponds to the JSON property flightsWithDetailedEmissions



51
52
53
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 51

def flights_with_detailed_emissions
  @flights_with_detailed_emissions
end

#model_versionGoogle::Apis::TravelimpactmodelV1::ModelVersion

Travel Impact Model version. For more information about the model versioning see GitHub. Corresponds to the JSON property modelVersion



57
58
59
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 57

def model_version
  @model_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64
65
66
67
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 64

def update!(**args)
  @flights_with_detailed_emissions = args[:flights_with_detailed_emissions] if args.key?(:flights_with_detailed_emissions)
  @model_version = args[:model_version] if args.key?(:model_version)
end