Class: Google::Apis::ChatV1::TimeInput
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::TimeInput
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
Time input values. Not supported by Chat apps.
Instance Attribute Summary collapse
-
#hours ⇒ Fixnum
The hour on a 24-hour clock.
-
#minutes ⇒ Fixnum
The number of minutes past the hour.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeInput
constructor
A new instance of TimeInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeInput
Returns a new instance of TimeInput.
2886 2887 2888 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2886 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hours ⇒ Fixnum
The hour on a 24-hour clock.
Corresponds to the JSON property hours
2879 2880 2881 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2879 def hours @hours end |
#minutes ⇒ Fixnum
The number of minutes past the hour. Valid values are 0 to 59.
Corresponds to the JSON property minutes
2884 2885 2886 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2884 def minutes @minutes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2891 2892 2893 2894 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2891 def update!(**args) @hours = args[:hours] if args.key?(:hours) @minutes = args[:minutes] if args.key?(:minutes) end |