Class: Google::Apis::PollenV1::PollenTypeInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#codeString

The pollen type's code name. For example: "GRASS" Corresponds to the JSON property code

Returns:

  • (String)


500
501
502
# File 'lib/google/apis/pollen_v1/classes.rb', line 500

def code
  @code
end

#display_nameString

A human readable representation of the pollen type name. Example: "Grass" Corresponds to the JSON property displayName

Returns:

  • (String)


505
506
507
# File 'lib/google/apis/pollen_v1/classes.rb', line 505

def display_name
  @display_name
end

#health_recommendationsArray<String>

Textual list of explanations, related to health insights based on the current pollen levels. Corresponds to the JSON property healthRecommendations

Returns:

  • (Array<String>)


511
512
513
# File 'lib/google/apis/pollen_v1/classes.rb', line 511

def health_recommendations
  @health_recommendations
end

#in_seasonBoolean Also known as: in_season?

Indication whether the plant is in season or not. Corresponds to the JSON property inSeason

Returns:

  • (Boolean)


516
517
518
# File 'lib/google/apis/pollen_v1/classes.rb', line 516

def in_season
  @in_season
end

#index_infoGoogle::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