Class: Google::Apis::ChatV1::DialogAction

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

Contains a dialog and request status code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DialogAction

Returns a new instance of DialogAction.



838
839
840
# File 'lib/google/apis/chat_v1/classes.rb', line 838

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

Instance Attribute Details

#action_statusGoogle::Apis::ChatV1::ActionStatus

Represents the status for a request to either invoke or submit a dialog. Corresponds to the JSON property actionStatus



831
832
833
# File 'lib/google/apis/chat_v1/classes.rb', line 831

def action_status
  @action_status
end

#dialogGoogle::Apis::ChatV1::Dialog

Wrapper around the card body of the dialog. Corresponds to the JSON property dialog



836
837
838
# File 'lib/google/apis/chat_v1/classes.rb', line 836

def dialog
  @dialog
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



843
844
845
846
# File 'lib/google/apis/chat_v1/classes.rb', line 843

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