Class: Google::Apis::ChatV1::SlashCommand

Inherits:
Object
  • Object
show all
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

A slash command in Google Chat.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SlashCommand

Returns a new instance of SlashCommand.



3686
3687
3688
# File 'lib/google/apis/chat_v1/classes.rb', line 3686

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#command_idFixnum

The ID of the slash command invoked. Corresponds to the JSON property commandId

Returns:

  • (Fixnum)


3684
3685
3686
# File 'lib/google/apis/chat_v1/classes.rb', line 3684

def command_id
  @command_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3691
3692
3693
# File 'lib/google/apis/chat_v1/classes.rb', line 3691

def update!(**args)
  @command_id = args[:command_id] if args.key?(:command_id)
end