Class: Yt::Group
Overview
Provides methods to interact with YouTube Analytics groups.
Instance Attribute Summary collapse
-
#item_count ⇒ Integer
readonly
The number of items in the group.
-
#item_type ⇒ String
readonly
The type of items in the group.
-
#published_at ⇒ Time
readonly
The date and time that the group was created.
-
#title ⇒ String
readonly
The group’s title.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Group
constructor
A new instance of Group.
Methods inherited from Resource
Constructor Details
#initialize(data = {}) ⇒ Group
Returns a new instance of Group.
21 22 23 24 |
# File 'lib/yt/group.rb', line 21 def initialize(data = {}) super @selected_data_parts = %i(id snippet content_details) end |
Instance Attribute Details
#item_count ⇒ Integer (readonly)
Returns the number of items in the group.
15 |
# File 'lib/yt/group.rb', line 15 has_attribute :item_count, in: :content_details, type: Integer |
#item_type ⇒ String (readonly)
Returns the type of items in the group.
19 |
# File 'lib/yt/group.rb', line 19 has_attribute :item_type, in: :content_details |
#published_at ⇒ Time (readonly)
Returns the date and time that the group was created.
11 |
# File 'lib/yt/group.rb', line 11 has_attribute :published_at, in: :snippet, type: Time |
#title ⇒ String (readonly)
Returns the group’s title.
7 |
# File 'lib/yt/group.rb', line 7 has_attribute :title, in: :snippet |