class Yt::Collections::ContentOwnerDetails

@private

Private Instance Methods

attributes_for_new_item(data) click to toggle source
# File lib/yt/collections/content_owner_details.rb, line 11
def attributes_for_new_item(data)
  {data: data['contentOwnerDetails']}
end
content_owner_details_params() click to toggle source
# File lib/yt/collections/content_owner_details.rb, line 25
def content_owner_details_params
  @parent.content_owner_details_params.tap do |params|
    params[:max_results] = 50
    params[:part] = 'contentOwnerDetails'
    params[:id] = @parent.id
  end
end
list_params() click to toggle source

@return [Hash] the parameters to submit to YouTube to get the

content owner detail of a channel.

@see developers.google.com/youtube/v3/docs/channels#contentOwnerDetails

Calls superclass method Yt::Actions::List#list_params
# File lib/yt/collections/content_owner_details.rb, line 18
def list_params
  super.tap do |params|
    params[:params] = content_owner_details_params
    params[:path] = '/youtube/v3/channels'
  end
end