Class: Google::Apis::ChatV1::User
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::User
- Defined in:
- generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb
Overview
A user in Hangouts Chat.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The user's display name.
-
#name ⇒ String
Resource name, in the format "users/*".
-
#type ⇒ String
User type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User
895 896 897 |
# File 'generated/google/apis/chat_v1/classes.rb', line 895 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The user's display name.
Corresponds to the JSON property displayName
883 884 885 |
# File 'generated/google/apis/chat_v1/classes.rb', line 883 def display_name @display_name end |
#name ⇒ String
Resource name, in the format "users/*".
Corresponds to the JSON property name
888 889 890 |
# File 'generated/google/apis/chat_v1/classes.rb', line 888 def name @name end |
#type ⇒ String
User type.
Corresponds to the JSON property type
893 894 895 |
# File 'generated/google/apis/chat_v1/classes.rb', line 893 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
900 901 902 903 904 |
# File 'generated/google/apis/chat_v1/classes.rb', line 900 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |