Class: Google::Apis::TravelimpactmodelV1::ComputeFlightEmissionsRequest
- Inherits:
-
Object
- Object
- Google::Apis::TravelimpactmodelV1::ComputeFlightEmissionsRequest
- 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
Input definition for the ComputeFlightEmissions request.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeFlightEmissionsRequest
constructor
A new instance of ComputeFlightEmissionsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeFlightEmissionsRequest
Returns a new instance of ComputeFlightEmissionsRequest.
79 80 81 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 79 def initialize(**args) update!(**args) end |
Instance Attribute Details
#flights ⇒ Array<Google::Apis::TravelimpactmodelV1::Flight>
Required. Direct flights to return emission estimates for.
Corresponds to the JSON property flights
77 78 79 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 77 def flights @flights end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
84 85 86 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 84 def update!(**args) @flights = args[:flights] if args.key?(:flights) end |