Class: Yt::Collections::Assets
- 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
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 |
# File 'lib/yt/collections/assets.rb', line 10 def insert(attributes = {}) underscore_keys! attributes body = {type: attributes[:type]} params = {on_behalf_of_content_owner: @auth.owner_name} do_insert(params: params, body: body) end |