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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TimePeriod

Returns a new instance of TimePeriod.


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

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)

2151
2152
2153
# File 'generated/google/apis/calendar_v3/classes.rb', line 2151

def end
  @end
end

#startDateTime

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

Returns:

  • (DateTime)

2156
2157
2158
# File 'generated/google/apis/calendar_v3/classes.rb', line 2156

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2163
2164
2165
2166
# File 'generated/google/apis/calendar_v3/classes.rb', line 2163

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