Class: Google::Apis::CloudsearchV1::UserDisplayInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::UserDisplayInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Resource for displaying user info
Instance Attribute Summary collapse
-
#avatar_url ⇒ String
The avatar to show for this user Corresponds to the JSON property
avatarUrl
. -
#display_name ⇒ String
The name to show for this user Corresponds to the JSON property
displayName
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserDisplayInfo
constructor
A new instance of UserDisplayInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserDisplayInfo
Returns a new instance of UserDisplayInfo.
21640 21641 21642 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#avatar_url ⇒ String
The avatar to show for this user
Corresponds to the JSON property avatarUrl
21633 21634 21635 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21633 def avatar_url @avatar_url end |
#display_name ⇒ String
The name to show for this user
Corresponds to the JSON property displayName
21638 21639 21640 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21638 def display_name @display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21645 21646 21647 21648 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21645 def update!(**args) @avatar_url = args[:avatar_url] if args.key?(:avatar_url) @display_name = args[:display_name] if args.key?(:display_name) end |