Class: Google::Apis::PollenV1::PlantDescription
- Inherits:
-
Object
- Object
- Google::Apis::PollenV1::PlantDescription
- 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
-
#cross_reaction ⇒ String
Textual description of pollen cross reaction plants.
-
#family ⇒ String
A human readable representation of the plant family name.
-
#picture ⇒ String
Link to the picture of the plant.
-
#picture_closeup ⇒ String
Link to a closeup picture of the plant.
-
#season ⇒ String
Textual list of explanations of seasons where the pollen is active.
-
#special_colors ⇒ String
Textual description of the plants' colors of leaves, bark, flowers or seeds that helps identify the plant.
-
#special_shapes ⇒ String
Textual description of the plants' shapes of leaves, bark, flowers or seeds that helps identify the plant.
-
#type ⇒ String
The plant's pollen type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlantDescription
constructor
A new instance of PlantDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_reaction ⇒ String
Textual description of pollen cross reaction plants. Example: Alder, Hazel,
Hornbeam, Beech, Willow, and Oak pollen.
Corresponds to the JSON property crossReaction
385 386 387 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 385 def cross_reaction @cross_reaction end |
#family ⇒ String
A human readable representation of the plant family name. Example: "Betulaceae
(the Birch family)".
Corresponds to the JSON property family
391 392 393 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 391 def family @family end |
#picture ⇒ String
Link to the picture of the plant.
Corresponds to the JSON property picture
396 397 398 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 396 def picture @picture end |
#picture_closeup ⇒ String
Link to a closeup picture of the plant.
Corresponds to the JSON property pictureCloseup
401 402 403 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 401 def picture_closeup @picture_closeup end |
#season ⇒ String
Textual list of explanations of seasons where the pollen is active. Example: "
Late winter, spring".
Corresponds to the JSON property season
407 408 409 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 407 def season @season end |
#special_colors ⇒ String
Textual description of the plants' colors of leaves, bark, flowers or seeds
that helps identify the plant.
Corresponds to the JSON property specialColors
413 414 415 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 413 def special_colors @special_colors end |
#special_shapes ⇒ String
Textual description of the plants' shapes of leaves, bark, flowers or seeds
that helps identify the plant.
Corresponds to the JSON property specialShapes
419 420 421 |
# File 'lib/google/apis/pollen_v1/classes.rb', line 419 def special_shapes @special_shapes end |
#type ⇒ String
The plant's pollen type. For example: "GRASS". A list of all available codes
could be found here.
Corresponds to the JSON property type
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 |