class Yt::Collections::Channels
Provides methods to interact with a collection of YouTube channels.
Resources
with channels are: {Yt::Models::Account accounts}.
Private Instance Methods
attributes_for_new_item(data)
click to toggle source
Calls superclass method
# File lib/yt/collections/channels.rb, line 12 def attributes_for_new_item(data) super(data).tap do |attributes| attributes[:statistics] = data['statistics'] end end
channels_params()
click to toggle source
# File lib/yt/collections/channels.rb, line 24 def channels_params params = resources_params params.merge! mine: true if @parent apply_where_params! params end
list_params()
click to toggle source
@return [Hash] the parameters to submit to YouTube to list channels. @see developers.google.com/youtube/v3/docs/channels/list
Calls superclass method
# File lib/yt/collections/channels.rb, line 20 def list_params super.tap{|params| params[:params] = channels_params} end