Class: Google::Apis::CloudsearchV1::UserDisplayInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserDisplayInfo

Returns a new instance of UserDisplayInfo.



20729
20730
20731
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20729

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

Instance Attribute Details

#avatar_urlString

The avatar to show for this user Corresponds to the JSON property avatarUrl

Returns:

  • (String)


20722
20723
20724
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20722

def avatar_url
  @avatar_url
end

#display_nameString

The name to show for this user Corresponds to the JSON property displayName

Returns:

  • (String)


20727
20728
20729
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20727

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20734
20735
20736
20737
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20734

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