Class: Google::Apis::YoutubeV3::SubscriptionSubscriberSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::SubscriptionSubscriberSnippet
- 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
-
#channel_id ⇒ String
The channel ID of the subscriber.
-
#description ⇒ String
The description of the subscriber.
-
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
-
#title ⇒ String
The title of the subscriber.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubscriptionSubscriberSnippet
constructor
A new instance of SubscriptionSubscriberSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubscriptionSubscriberSnippet
Returns a new instance of SubscriptionSubscriberSnippet.
7147 7148 7149 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_id ⇒ String
The channel ID of the subscriber.
Corresponds to the JSON property channelId
7130 7131 7132 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7130 def channel_id @channel_id end |
#description ⇒ String
The description of the subscriber.
Corresponds to the JSON property description
7135 7136 7137 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7135 def description @description end |
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
Corresponds to the JSON property thumbnails
7140 7141 7142 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7140 def thumbnails @thumbnails end |
#title ⇒ String
The title of the subscriber.
Corresponds to the JSON property title
7145 7146 7147 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7145 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7152 7153 7154 7155 7156 7157 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7152 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 |