Class: Google::Apis::YoutubeV3::SubscriptionSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::SubscriptionSnippet
- 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
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.
-
#channel_title ⇒ String
Channel title for the channel that the subscription belongs to.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SubscriptionSnippet
Returns a new instance of SubscriptionSnippet
6663 6664 6665 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6663 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
6630 6631 6632 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6630 def channel_id @channel_id end |
#channel_title ⇒ String
Channel title for the channel that the subscription belongs to.
Corresponds to the JSON property channelTitle
6635 6636 6637 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6635 def channel_title @channel_title end |
#description ⇒ String
The subscription's details.
Corresponds to the JSON property description
6640 6641 6642 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6640 def description @description end |
#published_at ⇒ DateTime
The date and time that the subscription was created. The value is specified in
ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property publishedAt
6646 6647 6648 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6646 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
6651 6652 6653 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6651 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
6656 6657 6658 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6656 def thumbnails @thumbnails end |
#title ⇒ String
The subscription's title.
Corresponds to the JSON property title
6661 6662 6663 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6661 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6668 6669 6670 6671 6672 6673 6674 6675 6676 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6668 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @channel_title = args[:channel_title] if args.key?(:channel_title) @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 |