Class: Google::Apis::YoutubeV3::SubscriptionContentDetails

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SubscriptionContentDetails

Returns a new instance of SubscriptionContentDetails.



6775
6776
6777
# File 'generated/google/apis/youtube_v3/classes.rb', line 6775

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

Instance Attribute Details

#activity_typeString

The type of activity this subscription is for (only uploads, everything). Corresponds to the JSON property activityType

Returns:

  • (String)


6763
6764
6765
# File 'generated/google/apis/youtube_v3/classes.rb', line 6763

def activity_type
  @activity_type
end

#new_item_countFixnum

The number of new items in the subscription since its content was last read. Corresponds to the JSON property newItemCount

Returns:

  • (Fixnum)


6768
6769
6770
# File 'generated/google/apis/youtube_v3/classes.rb', line 6768

def new_item_count
  @new_item_count
end

#total_item_countFixnum

The approximate number of items that the subscription points to. Corresponds to the JSON property totalItemCount

Returns:

  • (Fixnum)


6773
6774
6775
# File 'generated/google/apis/youtube_v3/classes.rb', line 6773

def total_item_count
  @total_item_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6780
6781
6782
6783
6784
# File 'generated/google/apis/youtube_v3/classes.rb', line 6780

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