Class: Google::Apis::AirqualityV1::Concentration
- Inherits:
-
Object
- Object
- Google::Apis::AirqualityV1::Concentration
- 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 concentration of a given pollutant in the air.
Instance Attribute Summary collapse
-
#units ⇒ String
Units for measuring this pollutant concentration.
-
#value ⇒ Float
Value of pollutant concentration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Concentration
constructor
A new instance of Concentration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Concentration
Returns a new instance of Concentration.
263 264 265 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#units ⇒ String
Units for measuring this pollutant concentration.
Corresponds to the JSON property units
256 257 258 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 256 def units @units end |
#value ⇒ Float
Value of pollutant concentration.
Corresponds to the JSON property value
261 262 263 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 261 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
268 269 270 271 |
# File 'lib/google/apis/airquality_v1/classes.rb', line 268 def update!(**args) @units = args[:units] if args.key?(:units) @value = args[:value] if args.key?(:value) end |