Class: Google::Apis::ChatV1::SlashCommand
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::SlashCommand
- 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
Metadata about a slash command in Google Chat.
Instance Attribute Summary collapse
-
#command_id ⇒ Fixnum
The ID of the slash command.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SlashCommand
constructor
A new instance of SlashCommand.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SlashCommand
Returns a new instance of SlashCommand.
5854 5855 5856 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5854 def initialize(**args) update!(**args) end |
Instance Attribute Details
#command_id ⇒ Fixnum
The ID of the slash command.
Corresponds to the JSON property commandId
5852 5853 5854 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5852 def command_id @command_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5859 5860 5861 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5859 def update!(**args) @command_id = args[:command_id] if args.key?(:command_id) end |