Class: Google::Apis::AirqualityV1::AdditionalInfo

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

The emission sources and health effects of a given pollutant.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#effectsString

Text representing the pollutant's main health effects. Corresponds to the JSON property effects

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/airquality_v1/classes.rb', line 32

def effects
  @effects
end

#sourcesString

Text representing the pollutant's main emission sources. Corresponds to the JSON property sources

Returns:

  • (String)


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