Class: Google::Apis::MirrorV1::Command
- Inherits:
-
Object
- Object
- Google::Apis::MirrorV1::Command
- 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
-
#type ⇒ String
The type of operation this command corresponds to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Command
constructor
A new instance of Command.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#type ⇒ String
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
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 |