class Yt::Collections::VideoGroups

@private

Private Instance Methods

attributes_for_new_item(data) click to toggle source
# File lib/yt/collections/video_groups.rb, line 12
def attributes_for_new_item(data)
  {id: data['id'], auth: @auth, group_info: Yt::GroupInfo.new(data: data)}
end
list_params() click to toggle source
Calls superclass method Yt::Actions::List#list_params
# File lib/yt/collections/video_groups.rb, line 20
def list_params
  super.tap do |params|
    params[:host] = 'youtubeanalytics.googleapis.com'
    params[:path] = "/v2/groups"
    params[:params] = @parent.video_groups_params
  end
end
new_item(data) click to toggle source
Calls superclass method Yt::Actions::List#new_item
# File lib/yt/collections/video_groups.rb, line 16
def new_item(data)
  super if data['contentDetails']['itemType'] == 'youtube#video'
end