Class: Google::Apis::CalendarV3::TimePeriod
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::TimePeriod
- 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
-
#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.
2161 2162 2163 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 2161 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ DateTime
The (exclusive) end of the time period.
Corresponds to the JSON property end
2154 2155 2156 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 2154 def end @end end |
#start ⇒ DateTime
The (inclusive) start of the time period.
Corresponds to the JSON property start
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 |