Class: Google::Apis::PhotoslibraryV1::ContributorInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/photoslibrary_v1/classes.rb,
generated/google/apis/photoslibrary_v1/representations.rb,
generated/google/apis/photoslibrary_v1/representations.rb

Overview

Information about a user who contributed the media item. Note that this information is only included if the album containing the media item is shared, was created by you and you have the sharing scope.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ContributorInfo

Returns a new instance of ContributorInfo



287
288
289
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 287

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

Instance Attribute Details

#display_nameString

Display name of the contributor. Corresponds to the JSON property displayName

Returns:

  • (String)


280
281
282
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 280

def display_name
  @display_name
end

#profile_picture_base_urlString

URL to the profile picture of the contributor. Corresponds to the JSON property profilePictureBaseUrl

Returns:

  • (String)


285
286
287
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 285

def profile_picture_base_url
  @profile_picture_base_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



292
293
294
295
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 292

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