Class: Google::Apis::AirqualityV1::Pollutant
- Inherits:
-
Object
- Object
- Google::Apis::AirqualityV1::Pollutant
- 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
Data regarding an air quality pollutant.
Instance Attribute Summary collapse
-
#additional_info ⇒ Google::Apis::AirqualityV1::AdditionalInfo
The emission sources and health effects of a given pollutant.
-
#code ⇒ String
The pollutant's code name.
-
#concentration ⇒ Google::Apis::AirqualityV1::Concentration
The concentration of a given pollutant in the air.
-
#display_name ⇒ String
The pollutant's display name.
-
#full_name ⇒ String
The pollutant's full name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Pollutant
constructor
A new instance of Pollutant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Pollutant
Returns a new instance of Pollutant.
989 990 991 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 989 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_info ⇒ Google::Apis::AirqualityV1::AdditionalInfo
The emission sources and health effects of a given pollutant.
Corresponds to the JSON property additionalInfo
963 964 965 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 963 def additional_info @additional_info end |
#code ⇒ String
The pollutant's code name. For example: "so2". A list of all available codes
could be found here.
Corresponds to the JSON property code
970 971 972 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 970 def code @code end |
#concentration ⇒ Google::Apis::AirqualityV1::Concentration
The concentration of a given pollutant in the air.
Corresponds to the JSON property concentration
975 976 977 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 975 def concentration @concentration end |
#display_name ⇒ String
The pollutant's display name. For example: "NOx".
Corresponds to the JSON property displayName
980 981 982 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 980 def display_name @display_name end |
#full_name ⇒ String
The pollutant's full name. For chemical compounds, this is the IUPAC name.
Example: "Sulfur Dioxide". For more information about the IUPAC names table,
see https://iupac.org/what-we-do/periodic-table-of-elements/
Corresponds to the JSON property fullName
987 988 989 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 987 def full_name @full_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
994 995 996 997 998 999 1000 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 994 def update!(**args) @additional_info = args[:additional_info] if args.key?(:additional_info) @code = args[:code] if args.key?(:code) @concentration = args[:concentration] if args.key?(:concentration) @display_name = args[:display_name] if args.key?(:display_name) @full_name = args[:full_name] if args.key?(:full_name) end |