Class: Google::Apis::PollenV1::PlantInfo

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 daily information on specific plant.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlantInfo

Returns a new instance of PlantInfo.



478
479
480
# File 'lib/google/apis/pollen_v1/classes.rb', line 478

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

Instance Attribute Details

#codeString

The plant code name. For example: "COTTONWOOD". A list of all available codes could be found here. Corresponds to the JSON property code

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/pollen_v1/classes.rb', line 452

def code
  @code
end

#display_nameString

A human readable representation of the plant name. Example: “Cottonwood". Corresponds to the JSON property displayName

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/pollen_v1/classes.rb', line 457

def display_name
  @display_name
end

#in_seasonBoolean Also known as: in_season?

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

Returns:

  • (Boolean)


462
463
464
# File 'lib/google/apis/pollen_v1/classes.rb', line 462

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



469
470
471
# File 'lib/google/apis/pollen_v1/classes.rb', line 469

def index_info
  @index_info
end

#plant_descriptionGoogle::Apis::PollenV1::PlantDescription

Contains general information about plants, including details on their seasonality, special shapes and colors, information about allergic cross- reactions, and plant photos. Corresponds to the JSON property plantDescription



476
477
478
# File 'lib/google/apis/pollen_v1/classes.rb', line 476

def plant_description
  @plant_description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



483
484
485
486
487
488
489
# File 'lib/google/apis/pollen_v1/classes.rb', line 483

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @display_name = args[:display_name] if args.key?(:display_name)
  @in_season = args[:in_season] if args.key?(:in_season)
  @index_info = args[:index_info] if args.key?(:index_info)
  @plant_description = args[:plant_description] if args.key?(:plant_description)
end