Class: Google::Apis::ChatV1::Reaction
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::Reaction
- 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
A reaction to a message. Developer Preview.
Instance Attribute Summary collapse
-
#emoji ⇒ Google::Apis::ChatV1::Emoji
An emoji that is used as a reaction to a message.
-
#name ⇒ String
The resource name of the reaction.
-
#user ⇒ Google::Apis::ChatV1::User
A user in Google Chat.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Reaction
constructor
A new instance of Reaction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Reaction
Returns a new instance of Reaction.
3366 3367 3368 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3366 def initialize(**args) update!(**args) end |
Instance Attribute Details
#emoji ⇒ Google::Apis::ChatV1::Emoji
An emoji that is used as a reaction to a message. Developer Preview.
Corresponds to the JSON property emoji
3353 3354 3355 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3353 def emoji @emoji end |
#name ⇒ String
The resource name of the reaction. Format: spaces/space/messages/message/
reactions/reaction`
Corresponds to the JSON propertyname`
3359 3360 3361 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3359 def name @name end |
#user ⇒ Google::Apis::ChatV1::User
A user in Google Chat.
Corresponds to the JSON property user
3364 3365 3366 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3364 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3371 3372 3373 3374 3375 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3371 def update!(**args) @emoji = args[:emoji] if args.key?(:emoji) @name = args[:name] if args.key?(:name) @user = args[:user] if args.key?(:user) end |