Class: Google::Apis::CalendarV3::TimePeriod

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/calendar_v3/classes.rb,
lib/google/apis/calendar_v3/representations.rb,
lib/google/apis/calendar_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimePeriod

Returns a new instance of TimePeriod.



2378
2379
2380
# File 'lib/google/apis/calendar_v3/classes.rb', line 2378

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

Instance Attribute Details

#endDateTime

The (exclusive) end of the time period. Corresponds to the JSON property end

Returns:

  • (DateTime)


2371
2372
2373
# File 'lib/google/apis/calendar_v3/classes.rb', line 2371

def end
  @end
end

#startDateTime

The (inclusive) start of the time period. Corresponds to the JSON property start

Returns:

  • (DateTime)


2376
2377
2378
# File 'lib/google/apis/calendar_v3/classes.rb', line 2376

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2383
2384
2385
2386
# File 'lib/google/apis/calendar_v3/classes.rb', line 2383

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