Class: Google::Apis::PollenV1::LookupForecastResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pollen_v1/classes.rb,
lib/google/apis/pollen_v1/representations.rb,
lib/google/apis/pollen_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LookupForecastResponse

Returns a new instance of LookupForecastResponse.



363
364
365
# File 'lib/google/apis/pollen_v1/classes.rb', line 363

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

Instance Attribute Details

#daily_infoArray<Google::Apis::PollenV1::DayInfo>

Required. This object contains the daily forecast information for each day requested. Corresponds to the JSON property dailyInfo



348
349
350
# File 'lib/google/apis/pollen_v1/classes.rb', line 348

def daily_info
  @daily_info
end

#next_page_tokenString

Optional. The token to retrieve the next page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


353
354
355
# File 'lib/google/apis/pollen_v1/classes.rb', line 353

def next_page_token
  @next_page_token
end

#region_codeString

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

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/pollen_v1/classes.rb', line 361

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
372
# File 'lib/google/apis/pollen_v1/classes.rb', line 368

def update!(**args)
  @daily_info = args[:daily_info] if args.key?(:daily_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