class Yt::Collections::ContentOwners
Provides methods to interact with a collection of Content Owners.
Resources
with content_owners are: {Yt::Models::Account accounts}.
Private Instance Methods
Source
# File lib/yt/collections/content_owners.rb, line 13 def attributes_for_new_item(data) {owner_name: data['id'], display_name: data['displayName'], authentication: @auth.authentication} end
Source
# File lib/yt/collections/content_owners.rb, line 27 def content_owners_params if @where_params.blank? {fetch_mine: true} else apply_where_params! on_behalf_of_content_owner: @parent.owner_name end end
Source
# File lib/yt/collections/content_owners.rb, line 20 def list_params super.tap do |params| params[:params] = content_owners_params params[:path] = '/youtube/partner/v1/contentOwners' end end
@return [Hash] the parameters to submit to YouTube to list content
owners administered by the account.
@see developers.google.com/youtube/partner/docs/v1/contentOwners/list
Calls superclass method
Yt::Actions::List#list_params