Class: Google::Apis::MirrorV1::Command

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

Overview

A single menu command that is part of a Contact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Command

Returns a new instance of Command.



167
168
169
# File 'generated/google/apis/mirror_v1/classes.rb', line 167

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

Instance Attribute Details

#typeString

The type of operation this command corresponds to. Allowed values are:

  • TAKE_A_NOTE - Shares a timeline item with the transcription of user speech from the "Take a note" voice menu command.
  • POST_AN_UPDATE - Shares a timeline item with the transcription of user speech from the "Post an update" voice menu command. Corresponds to the JSON property type

Returns:

  • (String)


165
166
167
# File 'generated/google/apis/mirror_v1/classes.rb', line 165

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



172
173
174
# File 'generated/google/apis/mirror_v1/classes.rb', line 172

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