Class: Google::Apis::AirqualityV1::LookupHistoryResponse
- Inherits:
-
Object
- Object
- Google::Apis::AirqualityV1::LookupHistoryResponse
- 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
Instance Attribute Summary collapse
-
#hours_info ⇒ Array<Google::Apis::AirqualityV1::HourInfo>
Optional.
-
#next_page_token ⇒ String
Optional.
-
#region_code ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LookupHistoryResponse
constructor
A new instance of LookupHistoryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LookupHistoryResponse
Returns a new instance of LookupHistoryResponse.
944 945 946 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 944 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hours_info ⇒ Array<Google::Apis::AirqualityV1::HourInfo>
Optional. Contains the air quality information for each hour in the requested
range. For example, if the request is for 48 hours of history there will be 48
elements of hourly info.
Corresponds to the JSON property hoursInfo
929 930 931 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 929 def hours_info @hours_info end |
#next_page_token ⇒ String
Optional. The token to retrieve the next page.
Corresponds to the JSON property nextPageToken
934 935 936 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 934 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
942 943 944 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 942 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
949 950 951 952 953 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 949 def update!(**args) @hours_info = args[:hours_info] if args.key?(:hours_info) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @region_code = args[:region_code] if args.key?(:region_code) end |