Class: Google::Apis::PhotoslibraryV1::DateFilter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#datesArray<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

#rangesArray<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