Class: Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Action
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Action
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Interactive objects inside a message. Documentation: - https://api.slack.com/ docs/message-buttons
Instance Attribute Summary collapse
-
#confirm ⇒ Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1ActionConfirm
Confirmation dialog config.
-
#name ⇒ String
Unique identifier for this action.
-
#style ⇒ String
Button style ("default", "primary", or "danger").
-
#text ⇒ String
User-facing label for the action.
-
#type ⇒ String
Action type - currently only "button".
-
#value ⇒ String
Payload for this action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteV1ApiCompatV1Action
constructor
A new instance of AppsDynamiteV1ApiCompatV1Action.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteV1ApiCompatV1Action
Returns a new instance of AppsDynamiteV1ApiCompatV1Action.
3890 3891 3892 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3890 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confirm ⇒ Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1ActionConfirm
Confirmation dialog config.
Corresponds to the JSON property confirm
3863 3864 3865 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3863 def confirm @confirm end |
#name ⇒ String
Unique identifier for this action.
Corresponds to the JSON property name
3868 3869 3870 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3868 def name @name end |
#style ⇒ String
Button style ("default", "primary", or "danger").
Corresponds to the JSON property style
3873 3874 3875 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3873 def style @style end |
#text ⇒ String
User-facing label for the action.
Corresponds to the JSON property text
3878 3879 3880 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3878 def text @text end |
#type ⇒ String
Action type - currently only "button".
Corresponds to the JSON property type
3883 3884 3885 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3883 def type @type end |
#value ⇒ String
Payload for this action. Will be sent to the action handler along with name.
Corresponds to the JSON property value
3888 3889 3890 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3888 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3895 3896 3897 3898 3899 3900 3901 3902 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3895 def update!(**args) @confirm = args[:confirm] if args.key?(:confirm) @name = args[:name] if args.key?(:name) @style = args[:style] if args.key?(:style) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |