Class: Google::Apis::PollenV1::PollenTypeInfo
- Inherits:
-
Object
- Object
- Google::Apis::PollenV1::PollenTypeInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pollen_v1/classes.rb,
lib/google/apis/pollen_v1/representations.rb,
lib/google/apis/pollen_v1/representations.rb
Overview
This object contains the pollen type index and health recommendation information on specific pollen type.
Instance Attribute Summary collapse
-
#code ⇒ String
The pollen type's code name.
-
#display_name ⇒ String
A human readable representation of the pollen type name.
-
#health_recommendations ⇒ Array<String>
Textual list of explanations, related to health insights based on the current pollen levels.
-
#in_season ⇒ Boolean
(also: #in_season?)
Indication whether the plant is in season or not.
-
#index_info ⇒ Google::Apis::PollenV1::IndexInfo
This object contains data representing specific pollen index value, category and description.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PollenTypeInfo
constructor
A new instance of PollenTypeInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PollenTypeInfo
Returns a new instance of PollenTypeInfo.
525 526 527 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 525 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The pollen type's code name. For example: "GRASS"
Corresponds to the JSON property code
500 501 502 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 500 def code @code end |
#display_name ⇒ String
A human readable representation of the pollen type name. Example: "Grass"
Corresponds to the JSON property displayName
505 506 507 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 505 def display_name @display_name end |
#health_recommendations ⇒ Array<String>
Textual list of explanations, related to health insights based on the current
pollen levels.
Corresponds to the JSON property healthRecommendations
511 512 513 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 511 def health_recommendations @health_recommendations end |
#in_season ⇒ Boolean Also known as: in_season?
Indication whether the plant is in season or not.
Corresponds to the JSON property inSeason
516 517 518 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 516 def in_season @in_season end |
#index_info ⇒ Google::Apis::PollenV1::IndexInfo
This object contains data representing specific pollen index value, category
and description.
Corresponds to the JSON property indexInfo
523 524 525 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 523 def index_info @index_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
530 531 532 533 534 535 536 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 530 def update!(**args) @code = args[:code] if args.key?(:code) @display_name = args[:display_name] if args.key?(:display_name) @health_recommendations = args[:health_recommendations] if args.key?(:health_recommendations) @in_season = args[:in_season] if args.key?(:in_season) @index_info = args[:index_info] if args.key?(:index_info) end |