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.
2581 2582 2583 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2581 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ DateTime
The (exclusive) end of the time period.
Corresponds to the JSON property end
2574 2575 2576 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2574 def end @end end |
#start ⇒ DateTime
The (inclusive) start of the time period.
Corresponds to the JSON property start
2579 2580 2581 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2579 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2586 2587 2588 2589 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2586 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |