Class: Yt::Collections::Claims
- Defined in:
- lib/yt/collections/claims.rb
Overview
Provides methods to interact with a collection of Content ID claims.
Resources with claims are: content owners.
Instance Method Summary collapse
Methods inherited from Base
Methods included from Actions::List
Constructor Details
This class inherits a constructor from Yt::Collections::Base
Instance Method Details
#insert(attributes = {}) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/yt/collections/claims.rb', line 10 def insert(attributes = {}) underscore_keys! attributes body = attributes.slice :asset_id, :video_id, :content_type body[:policy] = {id: attributes[:policy_id]} if attributes[:policy_id] params = {on_behalf_of_content_owner: @auth.owner_name} do_insert(params: params, body: body) end |