Class: Google::Apis::YoutubeV3::SubscriptionSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::SubscriptionSnippet
- 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, including title, description and thumbnails of the subscribed item.
Instance Attribute Summary collapse
-
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the subscriber's channel.
-
#description ⇒ String
The subscription's details.
-
#published_at ⇒ DateTime
The date and time that the subscription was created.
-
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
-
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
-
#title ⇒ String
The subscription's title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubscriptionSnippet
constructor
A new instance of SubscriptionSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubscriptionSnippet
Returns a new instance of SubscriptionSnippet.
7029 7030 7031 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7029 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the subscriber's channel.
Corresponds to the JSON property channelId
7002 7003 7004 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7002 def channel_id @channel_id end |
#description ⇒ String
The subscription's details.
Corresponds to the JSON property description
7007 7008 7009 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7007 def description @description end |
#published_at ⇒ DateTime
The date and time that the subscription was created.
Corresponds to the JSON property publishedAt
7012 7013 7014 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7012 def published_at @published_at end |
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Corresponds to the JSON property resourceId
7017 7018 7019 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7017 def resource_id @resource_id end |
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
Corresponds to the JSON property thumbnails
7022 7023 7024 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7022 def thumbnails @thumbnails end |
#title ⇒ String
The subscription's title.
Corresponds to the JSON property title
7027 7028 7029 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7027 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7034 7035 7036 7037 7038 7039 7040 7041 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7034 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @description = args[:description] if args.key?(:description) @published_at = args[:published_at] if args.key?(:published_at) @resource_id = args[:resource_id] if args.key?(:resource_id) @thumbnails = args[:thumbnails] if args.key?(:thumbnails) @title = args[:title] if args.key?(:title) end |