class Yt::Collections::GroupInfos

@private

Private Instance Methods

attributes_for_new_item(data) click to toggle source
# File lib/yt/collections/group_infos.rb, line 11
def attributes_for_new_item(data)
  {data: data, auth: @auth}
end
list_params() click to toggle source
Calls superclass method Yt::Actions::List#list_params
# File lib/yt/collections/group_infos.rb, line 15
def list_params
  super.tap do |params|
    params[:host] = 'youtubeanalytics.googleapis.com'
    params[:path] = "/v2/groups"
    params[:params] = {id: @parent.id}
    if @auth.owner_name
      params[:params][:on_behalf_of_content_owner] = @auth.owner_name
    end
  end
end