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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/calendar_v3/classes.rb,
generated/google/apis/calendar_v3/representations.rb,
generated/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.



2161
2162
2163
# File 'generated/google/apis/calendar_v3/classes.rb', line 2161

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)


2154
2155
2156
# File 'generated/google/apis/calendar_v3/classes.rb', line 2154

def end
  @end
end

#startDateTime

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

Returns:

  • (DateTime)


2159
2160
2161
# File 'generated/google/apis/calendar_v3/classes.rb', line 2159

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2166
2167
2168
2169
# File 'generated/google/apis/calendar_v3/classes.rb', line 2166

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