Class: Google::Apis::ChatV1::ActionParameter

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb

Overview

List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ActionParameter

Returns a new instance of ActionParameter.


42
43
44
# File 'generated/google/apis/chat_v1/classes.rb', line 42

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

Instance Attribute Details

#keyString

The name of the parameter for the action script. Corresponds to the JSON property key

Returns:

  • (String)

35
36
37
# File 'generated/google/apis/chat_v1/classes.rb', line 35

def key
  @key
end

#valueString

The value of the parameter. Corresponds to the JSON property value

Returns:

  • (String)

40
41
42
# File 'generated/google/apis/chat_v1/classes.rb', line 40

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


47
48
49
50
# File 'generated/google/apis/chat_v1/classes.rb', line 47

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