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.
2287 2288 2289 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2287 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ DateTime
The (exclusive) end of the time period.
Corresponds to the JSON property end
2280 2281 2282 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2280 def end @end end |
#start ⇒ DateTime
The (inclusive) start of the time period.
Corresponds to the JSON property start
2285 2286 2287 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2285 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2292 2293 2294 2295 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2292 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |