Class: Google::Apis::PhotoslibraryV1::DateFilter
- Inherits:
-
Object
- Object
- Google::Apis::PhotoslibraryV1::DateFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/photoslibrary_v1/classes.rb,
generated/google/apis/photoslibrary_v1/representations.rb,
generated/google/apis/photoslibrary_v1/representations.rb
Overview
This filter defines the allowed dates or date ranges for the media returned. It is possible to pick a set of specific dates and a set of date ranges.
Instance Attribute Summary collapse
-
#dates ⇒ Array<Google::Apis::PhotoslibraryV1::Date>
List of dates that the media items must have been created on.
-
#ranges ⇒ Array<Google::Apis::PhotoslibraryV1::DateRange>
List of dates ranges that the media items must have been created in.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DateFilter
constructor
A new instance of DateFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DateFilter
Returns a new instance of DateFilter
375 376 377 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 375 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dates ⇒ Array<Google::Apis::PhotoslibraryV1::Date>
List of dates that the media items must have been created on. There is a
maximum of 5 dates that can be included per request.
Corresponds to the JSON property dates
367 368 369 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 367 def dates @dates end |
#ranges ⇒ Array<Google::Apis::PhotoslibraryV1::DateRange>
List of dates ranges that the media items must have been created in. There
is a maximum of 5 dates ranges that can be included per request.
Corresponds to the JSON property ranges
373 374 375 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 373 def ranges @ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
380 381 382 383 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 380 def update!(**args) @dates = args[:dates] if args.key?(:dates) @ranges = args[:ranges] if args.key?(:ranges) end |