class Yt::Collections::Statuses

@private

Private Instance Methods

attributes_for_new_item(data) click to toggle source
# File lib/yt/collections/statuses.rb, line 11
def attributes_for_new_item(data)
  {data: data['status']}
end
list_params() click to toggle source

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

of a resource, for instance a channel.

@see developers.google.com/youtube/v3/docs/channels/list

Calls superclass method Yt::Actions::List#list_params
# File lib/yt/collections/statuses.rb, line 18
def list_params
  endpoint = @parent.kind.pluralize.camelize :lower
  super.tap do |params|
    params[:path] = "/youtube/v3/#{endpoint}"
    params[:params] = {id: @parent.id, part: 'status'}
  end
end