Class: Google::Apis::CalendarV3::TimePeriod
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::TimePeriod
- 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
-
#end ⇒ DateTime
The (exclusive) end of the time period.
-
#start ⇒ DateTime
The (inclusive) start of the time period.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimePeriod
constructor
A new instance of TimePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimePeriod
Returns a new instance of TimePeriod.
2384 2385 2386 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2384 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ DateTime
The (exclusive) end of the time period.
Corresponds to the JSON property end
2377 2378 2379 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2377 def end @end end |
#start ⇒ DateTime
The (inclusive) start of the time period.
Corresponds to the JSON property start
2382 2383 2384 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2382 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2389 2390 2391 2392 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2389 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |