Class: Google::Apis::AirqualityV1::HealthRecommendations
- Inherits:
-
Object
- Object
- Google::Apis::AirqualityV1::HealthRecommendations
- 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
-
#athletes ⇒ String
Sports and other strenuous outdoor activities.
-
#children ⇒ String
Younger populations including children, toddlers, and babies.
-
#elderly ⇒ String
Retirees and people older than the general population.
-
#general_population ⇒ String
No specific sensitivities.
-
#heart_disease_population ⇒ String
Heart and circulatory system diseases.
-
#lung_disease_population ⇒ String
Respiratory related problems and asthma suffers.
-
#pregnant_women ⇒ String
Women at all stages of pregnancy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HealthRecommendations
constructor
A new instance of HealthRecommendations.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#athletes ⇒ String
Sports and other strenuous outdoor activities.
Corresponds to the JSON property athletes
311 312 313 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 311 def athletes @athletes end |
#children ⇒ String
Younger populations including children, toddlers, and babies.
Corresponds to the JSON property children
316 317 318 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 316 def children @children end |
#elderly ⇒ String
Retirees and people older than the general population.
Corresponds to the JSON property elderly
321 322 323 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 321 def elderly @elderly end |
#general_population ⇒ String
No specific sensitivities.
Corresponds to the JSON property generalPopulation
326 327 328 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 326 def general_population @general_population end |
#heart_disease_population ⇒ String
Heart and circulatory system diseases.
Corresponds to the JSON property heartDiseasePopulation
331 332 333 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 331 def heart_disease_population @heart_disease_population end |
#lung_disease_population ⇒ String
Respiratory related problems and asthma suffers.
Corresponds to the JSON property lungDiseasePopulation
336 337 338 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 336 def lung_disease_population @lung_disease_population end |
#pregnant_women ⇒ String
Women at all stages of pregnancy.
Corresponds to the JSON property pregnantWomen
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 |