Class: Google::Apis::ChatV1::SlashCommandMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::SlashCommandMetadata
- 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
Annotation metadata for slash commands (/).
Instance Attribute Summary collapse
-
#bot ⇒ Google::Apis::ChatV1::User
A user in Google Chat.
-
#command_id ⇒ Fixnum
The command id of the invoked slash command.
-
#command_name ⇒ String
The name of the invoked slash command.
-
#triggers_dialog ⇒ Boolean
(also: #triggers_dialog?)
Indicating whether the slash command is for a dialog.
-
#type ⇒ String
The type of slash command.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SlashCommandMetadata
constructor
A new instance of SlashCommandMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SlashCommandMetadata
Returns a new instance of SlashCommandMetadata.
2745 2746 2747 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2745 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bot ⇒ Google::Apis::ChatV1::User
A user in Google Chat.
Corresponds to the JSON property bot
2722 2723 2724 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2722 def bot @bot end |
#command_id ⇒ Fixnum
The command id of the invoked slash command.
Corresponds to the JSON property commandId
2727 2728 2729 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2727 def command_id @command_id end |
#command_name ⇒ String
The name of the invoked slash command.
Corresponds to the JSON property commandName
2732 2733 2734 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2732 def command_name @command_name end |
#triggers_dialog ⇒ Boolean Also known as: triggers_dialog?
Indicating whether the slash command is for a dialog.
Corresponds to the JSON property triggersDialog
2737 2738 2739 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2737 def triggers_dialog @triggers_dialog end |
#type ⇒ String
The type of slash command.
Corresponds to the JSON property type
2743 2744 2745 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2743 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2750 2751 2752 2753 2754 2755 2756 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2750 def update!(**args) @bot = args[:bot] if args.key?(:bot) @command_id = args[:command_id] if args.key?(:command_id) @command_name = args[:command_name] if args.key?(:command_name) @triggers_dialog = args[:triggers_dialog] if args.key?(:triggers_dialog) @type = args[:type] if args.key?(:type) end |