Class: Google::Apis::PollenV1::PlantDescription

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

Contains general information about plants, including details on their seasonality, special shapes and colors, information about allergic cross- reactions, and plant photos.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlantDescription

Returns a new instance of PlantDescription.



427
428
429
# File 'lib/google/apis/pollen_v1/classes.rb', line 427

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

Instance Attribute Details

#cross_reactionString

Textual description of pollen cross reaction plants. Example: Alder, Hazel, Hornbeam, Beech, Willow, and Oak pollen. Corresponds to the JSON property crossReaction

Returns:

  • (String)


385
386
387
# File 'lib/google/apis/pollen_v1/classes.rb', line 385

def cross_reaction
  @cross_reaction
end

#familyString

A human readable representation of the plant family name. Example: "Betulaceae (the Birch family)". Corresponds to the JSON property family

Returns:

  • (String)


391
392
393
# File 'lib/google/apis/pollen_v1/classes.rb', line 391

def family
  @family
end

#pictureString

Link to the picture of the plant. Corresponds to the JSON property picture

Returns:

  • (String)


396
397
398
# File 'lib/google/apis/pollen_v1/classes.rb', line 396

def picture
  @picture
end

#picture_closeupString

Link to a closeup picture of the plant. Corresponds to the JSON property pictureCloseup

Returns:

  • (String)


401
402
403
# File 'lib/google/apis/pollen_v1/classes.rb', line 401

def picture_closeup
  @picture_closeup
end

#seasonString

Textual list of explanations of seasons where the pollen is active. Example: " Late winter, spring". Corresponds to the JSON property season

Returns:

  • (String)


407
408
409
# File 'lib/google/apis/pollen_v1/classes.rb', line 407

def season
  @season
end

#special_colorsString

Textual description of the plants' colors of leaves, bark, flowers or seeds that helps identify the plant. Corresponds to the JSON property specialColors

Returns:

  • (String)


413
414
415
# File 'lib/google/apis/pollen_v1/classes.rb', line 413

def special_colors
  @special_colors
end

#special_shapesString

Textual description of the plants' shapes of leaves, bark, flowers or seeds that helps identify the plant. Corresponds to the JSON property specialShapes

Returns:

  • (String)


419
420
421
# File 'lib/google/apis/pollen_v1/classes.rb', line 419

def special_shapes
  @special_shapes
end

#typeString

The plant's pollen type. For example: "GRASS". A list of all available codes could be found here. Corresponds to the JSON property type

Returns:

  • (String)


425
426
427
# File 'lib/google/apis/pollen_v1/classes.rb', line 425

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



432
433
434
435
436
437
438
439
440
441
# File 'lib/google/apis/pollen_v1/classes.rb', line 432

def update!(**args)
  @cross_reaction = args[:cross_reaction] if args.key?(:cross_reaction)
  @family = args[:family] if args.key?(:family)
  @picture = args[:picture] if args.key?(:picture)
  @picture_closeup = args[:picture_closeup] if args.key?(:picture_closeup)
  @season = args[:season] if args.key?(:season)
  @special_colors = args[:special_colors] if args.key?(:special_colors)
  @special_shapes = args[:special_shapes] if args.key?(:special_shapes)
  @type = args[:type] if args.key?(:type)
end