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.
34 35 36 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 34 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
32 33 34 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 32 def flights @flights end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
39 40 41 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 39 def update!(**args) @flights = args[:flights] if args.key?(:flights) end |