Class: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker
- 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
The widget that lets users to specify a date and time. Not supported by Google Chat apps.
Instance Attribute Summary collapse
-
#label ⇒ String
The label for the field that displays to the user.
-
#name ⇒ String
The name of the text input that's used in
formInput, and uniquely identifies this input. -
#on_change_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted.
-
#timezone_offset_date ⇒ Fixnum
The number representing the time zone offset from UTC, in minutes.
-
#type ⇒ String
The type of the date/time picker.
-
#value_ms_epoch ⇒ Fixnum
The value to display as the default value before user input or previous user input.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1DateTimePicker
constructor
A new instance of GoogleAppsCardV1DateTimePicker.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1DateTimePicker
Returns a new instance of GoogleAppsCardV1DateTimePicker.
1376 1377 1378 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1376 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
The label for the field that displays to the user.
Corresponds to the JSON property label
1341 1342 1343 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1341 def label @label end |
#name ⇒ String
The name of the text input that's used in formInput, and uniquely identifies
this input.
Corresponds to the JSON property name
1347 1348 1349 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1347 def name @name end |
#on_change_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted. For example,
an Apps Script can be invoked to handle the form.
Corresponds to the JSON property onChangeAction
1353 1354 1355 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1353 def on_change_action @on_change_action end |
#timezone_offset_date ⇒ Fixnum
The number representing the time zone offset from UTC, in minutes. If set, the
value_ms_epoch is displayed in the specified time zone. If not set, it uses
the user's time zone setting on the client side.
Corresponds to the JSON property timezoneOffsetDate
1360 1361 1362 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1360 def timezone_offset_date @timezone_offset_date end |
#type ⇒ String
The type of the date/time picker.
Corresponds to the JSON property type
1365 1366 1367 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1365 def type @type end |
#value_ms_epoch ⇒ Fixnum
The value to display as the default value before user input or previous user
input. It is represented in milliseconds (Epoch time). For DATE_AND_TIME
type, the full epoch value is used. For DATE_ONLY type, only date of the
epoch time is used. For TIME_ONLY type, only time of the epoch time is used.
For example, you can set epoch time to 3 * 60 * 60 * 1000 to represent 3am.
Corresponds to the JSON property valueMsEpoch
1374 1375 1376 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1374 def value_ms_epoch @value_ms_epoch end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1381 1382 1383 1384 1385 1386 1387 1388 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1381 def update!(**args) @label = args[:label] if args.key?(:label) @name = args[:name] if args.key?(:name) @on_change_action = args[:on_change_action] if args.key?(:on_change_action) @timezone_offset_date = args[:timezone_offset_date] if args.key?(:timezone_offset_date) @type = args[:type] if args.key?(:type) @value_ms_epoch = args[:value_ms_epoch] if args.key?(:value_ms_epoch) end |