Class: Google::Apis::ChatV1::AppCommandMetadata

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

Metadata about a Chat app command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppCommandMetadata

Returns a new instance of AppCommandMetadata.



268
269
270
# File 'lib/google/apis/chat_v1/classes.rb', line 268

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

Instance Attribute Details

#app_command_idFixnum

The ID for the command specified in the Chat API configuration. Corresponds to the JSON property appCommandId

Returns:

  • (Fixnum)


261
262
263
# File 'lib/google/apis/chat_v1/classes.rb', line 261

def app_command_id
  @app_command_id
end

#app_command_typeString

The type of Chat app command. Corresponds to the JSON property appCommandType

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/chat_v1/classes.rb', line 266

def app_command_type
  @app_command_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



273
274
275
276
# File 'lib/google/apis/chat_v1/classes.rb', line 273

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