Class: Google::Apis::ChatV1::GoogleAppsCardV1Validation
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1Validation
- 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
Represents the necessary data for validating the widget it's attached to. Google Workspace Add-ons and Chat apps:
Instance Attribute Summary collapse
-
#character_limit ⇒ Fixnum
Specify the character limit for text input widgets.
-
#input_type ⇒ String
Specify the type of the input widgets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1Validation
constructor
A new instance of GoogleAppsCardV1Validation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1Validation
Returns a new instance of GoogleAppsCardV1Validation.
3404 3405 3406 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#character_limit ⇒ Fixnum
Specify the character limit for text input widgets. Note that this is only
used for text input and is ignored for other widgets. Google Workspace Add-
ons and Chat apps:
Corresponds to the JSON property characterLimit
3396 3397 3398 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3396 def character_limit @character_limit end |
#input_type ⇒ String
Specify the type of the input widgets. Google Workspace Add-ons and Chat apps:
Corresponds to the JSON property inputType
3402 3403 3404 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3402 def input_type @input_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3409 3410 3411 3412 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3409 def update!(**args) @character_limit = args[:character_limit] if args.key?(:character_limit) @input_type = args[:input_type] if args.key?(:input_type) end |