Class: Google::Apis::CalendarV3::TimePeriod
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::TimePeriod
- 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
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimePeriod
Returns a new instance of TimePeriod
2114 2115 2116 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 2114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ DateTime
The (exclusive) end of the time period.
Corresponds to the JSON property end
2107 2108 2109 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 2107 def end @end end |
#start ⇒ DateTime
The (inclusive) start of the time period.
Corresponds to the JSON property start
2112 2113 2114 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 2112 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2119 2120 2121 2122 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 2119 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |