Class: Yt::Collections::Assets

Inherits:
Base
  • Object
show all
Defined in:
lib/yt/collections/assets.rb

Overview

Provides methods to interact with a collection of Content ID assets.

Resources with assets are: content owners.

Instance Method Summary collapse

Methods inherited from Base

#includes, #initialize, of, #where

Constructor Details

This class inherits a constructor from Yt::Collections::Base

Instance Method Details

#insert(attributes = {}) ⇒ Object


11
12
13
14
# File 'lib/yt/collections/assets.rb', line 11

def insert(attributes = {})
  params = {on_behalf_of_content_owner: @auth.owner_name}
  do_insert(params: params, body: attributes)
end