Class: Google::Apis::AirqualityV1::AdditionalInfo
- Inherits:
-
Object
- Object
- Google::Apis::AirqualityV1::AdditionalInfo
- 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 emission sources and health effects of a given pollutant.
Instance Attribute Summary collapse
-
#effects ⇒ String
Text representing the pollutant's main health effects.
-
#sources ⇒ String
Text representing the pollutant's main emission sources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdditionalInfo
constructor
A new instance of AdditionalInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdditionalInfo
Returns a new instance of AdditionalInfo.
39 40 41 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#effects ⇒ String
Text representing the pollutant's main health effects.
Corresponds to the JSON property effects
32 33 34 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 32 def effects @effects end |
#sources ⇒ String
Text representing the pollutant's main emission sources.
Corresponds to the JSON property sources
37 38 39 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 37 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 44 def update!(**args) @effects = args[:effects] if args.key?(:effects) @sources = args[:sources] if args.key?(:sources) end |