Class: Google::Apis::YoutubeV3::SubscriptionContentDetails
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::SubscriptionContentDetails
- 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
Details about the content to witch a subscription refers.
Instance Attribute Summary collapse
-
#activity_type ⇒ String
The type of activity this subscription is for (only uploads, everything).
-
#new_item_count ⇒ Fixnum
The number of new items in the subscription since its content was last read.
-
#total_item_count ⇒ Fixnum
The approximate number of items that the subscription points to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubscriptionContentDetails
constructor
A new instance of SubscriptionContentDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SubscriptionContentDetails
Returns a new instance of SubscriptionContentDetails
6411 6412 6413 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activity_type ⇒ String
The type of activity this subscription is for (only uploads, everything).
Corresponds to the JSON property activityType
6399 6400 6401 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6399 def activity_type @activity_type end |
#new_item_count ⇒ Fixnum
The number of new items in the subscription since its content was last read.
Corresponds to the JSON property newItemCount
6404 6405 6406 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6404 def new_item_count @new_item_count end |
#total_item_count ⇒ Fixnum
The approximate number of items that the subscription points to.
Corresponds to the JSON property totalItemCount
6409 6410 6411 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6409 def total_item_count @total_item_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6416 6417 6418 6419 6420 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6416 def update!(**args) @activity_type = args[:activity_type] if args.key?(:activity_type) @new_item_count = args[:new_item_count] if args.key?(:new_item_count) @total_item_count = args[:total_item_count] if args.key?(:total_item_count) end |