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
Date and time input values.
Instance Attribute Summary collapse
-
#has_date ⇒ Boolean
(also: #has_date?)
Whether the
datetime
input includes a calendar date. -
#has_time ⇒ Boolean
(also: #has_time?)
Whether the
datetime
input includes a timestamp. -
#ms_since_epoch ⇒ Fixnum
Time since epoch time, in milliseconds.
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.
843 844 845 |
# File 'lib/google/apis/chat_v1/classes.rb', line 843 def initialize(**args) update!(**args) end |
Instance Attribute Details
#has_date ⇒ Boolean Also known as: has_date?
Whether the datetime
input includes a calendar date.
Corresponds to the JSON property hasDate
829 830 831 |
# File 'lib/google/apis/chat_v1/classes.rb', line 829 def has_date @has_date end |
#has_time ⇒ Boolean Also known as: has_time?
Whether the datetime
input includes a timestamp.
Corresponds to the JSON property hasTime
835 836 837 |
# File 'lib/google/apis/chat_v1/classes.rb', line 835 def has_time @has_time end |
#ms_since_epoch ⇒ Fixnum
Time since epoch time, in milliseconds.
Corresponds to the JSON property msSinceEpoch
841 842 843 |
# File 'lib/google/apis/chat_v1/classes.rb', line 841 def ms_since_epoch @ms_since_epoch end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
848 849 850 851 852 |
# File 'lib/google/apis/chat_v1/classes.rb', line 848 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 |