Class: Google::Apis::AirqualityV1::LookupForecastResponse
- Inherits:
-
Object
- Object
- Google::Apis::AirqualityV1::LookupForecastResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/airquality_v1/classes.rb,
lib/google/apis/airquality_v1/representations.rb,
lib/google/apis/airquality_v1/representations.rb
Overview
The response object of the air quality forecast API.
Instance Attribute Summary collapse
-
#hourly_forecasts ⇒ Array<Google::Apis::AirqualityV1::HourlyForecast>
Optional.
-
#next_page_token ⇒ String
Optional.
-
#region_code ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LookupForecastResponse
constructor
A new instance of LookupForecastResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LookupForecastResponse
Returns a new instance of LookupForecastResponse.
800 801 802 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 800 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hourly_forecasts ⇒ Array<Google::Apis::AirqualityV1::HourlyForecast>
Optional. Contains the air quality information for each hour in the requested
range. For example, if the request is for 48 hours of forecast there will be
48 elements of hourly forecasts.
Corresponds to the JSON property hourlyForecasts
785 786 787 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 785 def hourly_forecasts @hourly_forecasts end |
#next_page_token ⇒ String
Optional. The token to retrieve the next page.
Corresponds to the JSON property nextPageToken
790 791 792 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 790 def next_page_token @next_page_token end |
#region_code ⇒ String
Optional. The ISO_3166-1 alpha-2 code of the country/region corresponding to
the location provided in the request. This field might be omitted from the
response if the location provided in the request resides in a disputed
territory.
Corresponds to the JSON property regionCode
798 799 800 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 798 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
805 806 807 808 809 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 805 def update!(**args) @hourly_forecasts = args[:hourly_forecasts] if args.key?(:hourly_forecasts) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @region_code = args[:region_code] if args.key?(:region_code) end |