Class: Google::Apis::ChatV1::DateTimeInput
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::DateTimeInput
- 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
Input Parameter for Date and Time Picker widget.
Instance Attribute Summary collapse
-
#has_date ⇒ Boolean
(also: #has_date?)
Corresponds to the JSON property
hasDate. -
#has_time ⇒ Boolean
(also: #has_time?)
Corresponds to the JSON property
hasTime. -
#ms_since_epoch ⇒ Fixnum
Corresponds to the JSON property
msSinceEpoch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DateTimeInput
constructor
A new instance of DateTimeInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DateTimeInput
Returns a new instance of DateTimeInput.
567 568 569 |
# File 'lib/google/apis/chat_v1/classes.rb', line 567 def initialize(**args) update!(**args) end |
Instance Attribute Details
#has_date ⇒ Boolean Also known as: has_date?
Corresponds to the JSON property hasDate
553 554 555 |
# File 'lib/google/apis/chat_v1/classes.rb', line 553 def has_date @has_date end |
#has_time ⇒ Boolean Also known as: has_time?
Corresponds to the JSON property hasTime
559 560 561 |
# File 'lib/google/apis/chat_v1/classes.rb', line 559 def has_time @has_time end |
#ms_since_epoch ⇒ Fixnum
Corresponds to the JSON property msSinceEpoch
565 566 567 |
# File 'lib/google/apis/chat_v1/classes.rb', line 565 def ms_since_epoch @ms_since_epoch end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
572 573 574 575 576 |
# File 'lib/google/apis/chat_v1/classes.rb', line 572 def update!(**args) @has_date = args[:has_date] if args.key?(:has_date) @has_time = args[:has_time] if args.key?(:has_time) @ms_since_epoch = args[:ms_since_epoch] if args.key?(:ms_since_epoch) end |