Class: Google::Apis::PollenV1::DayInfo

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 forecast information for each day requested.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DayInfo

Returns a new instance of DayInfo.



182
183
184
# File 'lib/google/apis/pollen_v1/classes.rb', line 182

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

Instance Attribute Details

#dateGoogle::Apis::PollenV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property date



168
169
170
# File 'lib/google/apis/pollen_v1/classes.rb', line 168

def date
  @date
end

#plant_infoArray<Google::Apis::PollenV1::PlantInfo>

This list will include up to 15 pollen species affecting the location specified in the request. Corresponds to the JSON property plantInfo



174
175
176
# File 'lib/google/apis/pollen_v1/classes.rb', line 174

def plant_info
  @plant_info
end

#pollen_type_infoArray<Google::Apis::PollenV1::PollenTypeInfo>

This list will include up to three pollen types (GRASS, WEED, TREE) affecting the location specified in the request. Corresponds to the JSON property pollenTypeInfo



180
181
182
# File 'lib/google/apis/pollen_v1/classes.rb', line 180

def pollen_type_info
  @pollen_type_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



187
188
189
190
191
# File 'lib/google/apis/pollen_v1/classes.rb', line 187

def update!(**args)
  @date = args[:date] if args.key?(:date)
  @plant_info = args[:plant_info] if args.key?(:plant_info)
  @pollen_type_info = args[:pollen_type_info] if args.key?(:pollen_type_info)
end