Class: Google::Apis::YoutubeV3::ChannelProfileDetails

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

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) ⇒ ChannelProfileDetails

Returns a new instance of ChannelProfileDetails.



1379
1380
1381
# File 'generated/google/apis/youtube_v3/classes.rb', line 1379

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

Instance Attribute Details

#channel_idString

The YouTube channel ID. Corresponds to the JSON property channelId

Returns:

  • (String)


1362
1363
1364
# File 'generated/google/apis/youtube_v3/classes.rb', line 1362

def channel_id
  @channel_id
end

#channel_urlString

The channel's URL. Corresponds to the JSON property channelUrl

Returns:

  • (String)


1367
1368
1369
# File 'generated/google/apis/youtube_v3/classes.rb', line 1367

def channel_url
  @channel_url
end

#display_nameString

The channel's display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1372
1373
1374
# File 'generated/google/apis/youtube_v3/classes.rb', line 1372

def display_name
  @display_name
end

#profile_image_urlString

The channels's avatar URL. Corresponds to the JSON property profileImageUrl

Returns:

  • (String)


1377
1378
1379
# File 'generated/google/apis/youtube_v3/classes.rb', line 1377

def profile_image_url
  @profile_image_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1384
1385
1386
1387
1388
1389
# File 'generated/google/apis/youtube_v3/classes.rb', line 1384

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