Class: Yt::Group

Inherits:
Resource show all
Defined in:
lib/yt/group.rb

Overview

Provides methods to interact with YouTube Analytics groups.

Instance Attribute Summary collapse

Attributes inherited from Resource

#data

Instance Method Summary collapse

Methods inherited from Resource

#id, #inspect, #select, where

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_countInteger (readonly)

Returns the number of items in the group.

Returns:

  • (Integer)

    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_typeString (readonly)

Returns the type of items in the group.

Returns:

  • (String)

    the type of items in the group.


19
# File 'lib/yt/group.rb', line 19

has_attribute :item_type, in: :content_details

#published_atTime (readonly)

Returns the date and time that the group was created.

Returns:

  • (Time)

    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

#titleString (readonly)

Returns the group’s title.

Returns:

  • (String)

    the group’s title.


7
# File 'lib/yt/group.rb', line 7

has_attribute :title, in: :snippet