Class: Google::Apis::PhotoslibraryV1::DateRange

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

Defines a range of dates. Both dates must be of the same format (see Date definition for more).

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) ⇒ DateRange

Returns a new instance of DateRange



411
412
413
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 411

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

Instance Attribute Details

#end_dateGoogle::Apis::PhotoslibraryV1::Date

Represents a whole calendar date. The day may be 0 to represent a year and month where the day is not significant, e.g. a whole calendar month. The month may be 0 to represent a a day and a year where the month is not signficant, e. g. when you want to specify the same day in every month of a year or a specific year. The year may be 0 to represent a month and day independent of year, e.g. anniversary date. Corresponds to the JSON property endDate



399
400
401
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 399

def end_date
  @end_date
end

#start_dateGoogle::Apis::PhotoslibraryV1::Date

Represents a whole calendar date. The day may be 0 to represent a year and month where the day is not significant, e.g. a whole calendar month. The month may be 0 to represent a a day and a year where the month is not signficant, e. g. when you want to specify the same day in every month of a year or a specific year. The year may be 0 to represent a month and day independent of year, e.g. anniversary date. Corresponds to the JSON property startDate



409
410
411
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 409

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



416
417
418
419
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 416

def update!(**args)
  @end_date = args[:end_date] if args.key?(:end_date)
  @start_date = args[:start_date] if args.key?(:start_date)
end