Class: Google::Apis::TravelimpactmodelV1::ComputeTypicalFlightEmissionsRequest

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

A list of pair of airports (markets) to request the typical emissions for.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeTypicalFlightEmissionsRequest

Returns a new instance of ComputeTypicalFlightEmissionsRequest.



132
133
134
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 132

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

Instance Attribute Details

#marketsArray<Google::Apis::TravelimpactmodelV1::Market>

Required. Request the typical flight emissions estimates for this market pair. A maximum of 1000 markets can be requested. Corresponds to the JSON property markets



130
131
132
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 130

def markets
  @markets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



137
138
139
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 137

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