class Yt::Collections::Ratings
@private
Private Instance Methods
attributes_for_new_item(data)
click to toggle source
# File lib/yt/collections/ratings.rb, line 11 def attributes_for_new_item(data) {rating: data['rating'], video_id: @parent.id, auth: @auth} end
list_params()
click to toggle source
Calls superclass method
Yt::Actions::List#list_params
# File lib/yt/collections/ratings.rb, line 15 def list_params super.tap do |params| params[:path] = '/youtube/v3/videos/getRating' params[:params] = {id: @parent.id} end end