Class: Google::Apis::AirqualityV1::HealthRecommendations

Inherits:
Object
  • Object
show all
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

Health recommendations for different population groups in a free text format. The recommendations are derived from their associated air quality conditions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HealthRecommendations

Returns a new instance of HealthRecommendations.



343
344
345
# File 'lib/google/apis/airquality_v1/classes.rb', line 343

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

Instance Attribute Details

#athletesString

Sports and other strenuous outdoor activities. Corresponds to the JSON property athletes

Returns:

  • (String)


311
312
313
# File 'lib/google/apis/airquality_v1/classes.rb', line 311

def athletes
  @athletes
end

#childrenString

Younger populations including children, toddlers, and babies. Corresponds to the JSON property children

Returns:

  • (String)


316
317
318
# File 'lib/google/apis/airquality_v1/classes.rb', line 316

def children
  @children
end

#elderlyString

Retirees and people older than the general population. Corresponds to the JSON property elderly

Returns:

  • (String)


321
322
323
# File 'lib/google/apis/airquality_v1/classes.rb', line 321

def elderly
  @elderly
end

#general_populationString

No specific sensitivities. Corresponds to the JSON property generalPopulation

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/airquality_v1/classes.rb', line 326

def general_population
  @general_population
end

#heart_disease_populationString

Heart and circulatory system diseases. Corresponds to the JSON property heartDiseasePopulation

Returns:

  • (String)


331
332
333
# File 'lib/google/apis/airquality_v1/classes.rb', line 331

def heart_disease_population
  @heart_disease_population
end

#lung_disease_populationString

Respiratory related problems and asthma suffers. Corresponds to the JSON property lungDiseasePopulation

Returns:

  • (String)


336
337
338
# File 'lib/google/apis/airquality_v1/classes.rb', line 336

def lung_disease_population
  @lung_disease_population
end

#pregnant_womenString

Women at all stages of pregnancy. Corresponds to the JSON property pregnantWomen

Returns:

  • (String)


341
342
343
# File 'lib/google/apis/airquality_v1/classes.rb', line 341

def pregnant_women
  @pregnant_women
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



348
349
350
351
352
353
354
355
356
# File 'lib/google/apis/airquality_v1/classes.rb', line 348

def update!(**args)
  @athletes = args[:athletes] if args.key?(:athletes)
  @children = args[:children] if args.key?(:children)
  @elderly = args[:elderly] if args.key?(:elderly)
  @general_population = args[:general_population] if args.key?(:general_population)
  @heart_disease_population = args[:heart_disease_population] if args.key?(:heart_disease_population)
  @lung_disease_population = args[:lung_disease_population] if args.key?(:lung_disease_population)
  @pregnant_women = args[:pregnant_women] if args.key?(:pregnant_women)
end