class Yt::Collections::Policies

Provides methods to interact with a collection of Content ID policies.

Resources with policies are: {Yt::Models::ContentOwner content owners}.

Private Instance Methods

list_params() click to toggle source

@return [Hash] the parameters to submit to YouTube to list policies

saved by the content owner.

@see developers.google.com/youtube/partner/docs/v1/policies/list

Calls superclass method Yt::Actions::List#list_params
# File lib/yt/collections/policies.rb, line 16
def list_params
  super.tap do |params|
    params[:params] = policies_params
    params[:path] = '/youtube/partner/v1/policies'
  end
end
policies_params() click to toggle source
# File lib/yt/collections/policies.rb, line 23
def policies_params
  apply_where_params! on_behalf_of_content_owner: @parent.owner_name
end