Class: Google::Apis::YoutubeV3::SubscriptionSubscriberSnippet

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

Overview

Basic details about a subscription's subscriber including title, description, channel ID and thumbnails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubscriptionSubscriberSnippet

Returns a new instance of SubscriptionSubscriberSnippet.



7069
7070
7071
# File 'lib/google/apis/youtube_v3/classes.rb', line 7069

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

Instance Attribute Details

#channel_idString

The channel ID of the subscriber. Corresponds to the JSON property channelId

Returns:

  • (String)


7052
7053
7054
# File 'lib/google/apis/youtube_v3/classes.rb', line 7052

def channel_id
  @channel_id
end

#descriptionString

The description of the subscriber. Corresponds to the JSON property description

Returns:

  • (String)


7057
7058
7059
# File 'lib/google/apis/youtube_v3/classes.rb', line 7057

def description
  @description
end

#thumbnailsGoogle::Apis::YoutubeV3::ThumbnailDetails

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property thumbnails



7062
7063
7064
# File 'lib/google/apis/youtube_v3/classes.rb', line 7062

def thumbnails
  @thumbnails
end

#titleString

The title of the subscriber. Corresponds to the JSON property title

Returns:

  • (String)


7067
7068
7069
# File 'lib/google/apis/youtube_v3/classes.rb', line 7067

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7074
7075
7076
7077
7078
7079
# File 'lib/google/apis/youtube_v3/classes.rb', line 7074

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @description = args[:description] if args.key?(:description)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
end