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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelProfileDetails

Returns a new instance of ChannelProfileDetails.



1470
1471
1472
# File 'lib/google/apis/youtube_v3/classes.rb', line 1470

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

Instance Attribute Details

#channel_idString

The YouTube channel ID. Corresponds to the JSON property channelId

Returns:

  • (String)


1453
1454
1455
# File 'lib/google/apis/youtube_v3/classes.rb', line 1453

def channel_id
  @channel_id
end

#channel_urlString

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

Returns:

  • (String)


1458
1459
1460
# File 'lib/google/apis/youtube_v3/classes.rb', line 1458

def channel_url
  @channel_url
end

#display_nameString

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

Returns:

  • (String)


1463
1464
1465
# File 'lib/google/apis/youtube_v3/classes.rb', line 1463

def display_name
  @display_name
end

#profile_image_urlString

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

Returns:

  • (String)


1468
1469
1470
# File 'lib/google/apis/youtube_v3/classes.rb', line 1468

def profile_image_url
  @profile_image_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1475
1476
1477
1478
1479
1480
# File 'lib/google/apis/youtube_v3/classes.rb', line 1475

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