Method: Yt::Collections::Claims#insert
- Defined in:
- lib/yt/collections/claims.rb
#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 |