Class: Google::Apis::AirqualityV1::LookupCurrentConditionsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LookupCurrentConditionsResponse

Returns a new instance of LookupCurrentConditionsResponse.



665
666
667
# File 'lib/google/apis/airquality_v1/classes.rb', line 665

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#date_timeString

A rounded down timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. For example: "2014-10-02T15:00: 00Z". Corresponds to the JSON property dateTime

Returns:

  • (String)


633
634
635
# File 'lib/google/apis/airquality_v1/classes.rb', line 633

def date_time
  @date_time
end

#health_recommendationsGoogle::Apis::AirqualityV1::HealthRecommendations

Health recommendations for different population groups in a free text format. The recommendations are derived from their associated air quality conditions. Corresponds to the JSON property healthRecommendations



639
640
641
# File 'lib/google/apis/airquality_v1/classes.rb', line 639

def health_recommendations
  @health_recommendations
end

#indexesArray<Google::Apis::AirqualityV1::AirQualityIndex>

Based on the request parameters, this list will include (up to) two air quality indexes: - Universal AQI. Will be returned if the universalAqi boolean is set to true. - Local AQI. Will be returned if the LOCAL_AQI extra computation is specified. Corresponds to the JSON property indexes



647
648
649
# File 'lib/google/apis/airquality_v1/classes.rb', line 647

def indexes
  @indexes
end

#pollutantsArray<Google::Apis::AirqualityV1::Pollutant>

A list of pollutants affecting the location specified in the request. Note: This field will be returned only for requests that specified one or more of the following extra computations: POLLUTANT_ADDITIONAL_INFO, DOMINANT_POLLUTANT_CONCENTRATION, POLLUTANT_CONCENTRATION. Corresponds to the JSON property pollutants



655
656
657
# File 'lib/google/apis/airquality_v1/classes.rb', line 655

def pollutants
  @pollutants
end

#region_codeString

The ISO_3166-1 alpha-2 code of the country/region corresponding to the location provided in the request. This field might be omitted from the response if the location provided in the request resides in a disputed territory. Corresponds to the JSON property regionCode

Returns:

  • (String)


663
664
665
# File 'lib/google/apis/airquality_v1/classes.rb', line 663

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



670
671
672
673
674
675
676
# File 'lib/google/apis/airquality_v1/classes.rb', line 670

def update!(**args)
  @date_time = args[:date_time] if args.key?(:date_time)
  @health_recommendations = args[:health_recommendations] if args.key?(:health_recommendations)
  @indexes = args[:indexes] if args.key?(:indexes)
  @pollutants = args[:pollutants] if args.key?(:pollutants)
  @region_code = args[:region_code] if args.key?(:region_code)
end