Class: Zype::Videos
Overview
Read more at docs.zype.com/v1.0/reference#videos
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#add_zobjects(id:, zobject_ids:) ⇒ Hash
Adds zobjects to video.
-
#download(id:) ⇒ Hash
Returns the original source file for the video.
-
#remove_zobjects(id:, zobject_ids:) ⇒ Hash
Removes zobjects from video.
Methods inherited from BaseModel
#all, #auth=, #create, #delete, #find, #initialize, #update
Constructor Details
This class inherits a constructor from Zype::BaseModel
Instance Method Details
#add_zobjects(id:, zobject_ids:) ⇒ Hash
Adds zobjects to video
11 12 13 |
# File 'lib/zype/models/videos.rb', line 11 def add_zobjects(id:, zobject_ids:) client.execute(method: :put, path: "/videos/#{id}/add_zobjects", params: { zobject_id: zobject_ids }) end |
#download(id:) ⇒ Hash
Returns the original source file for the video
28 29 30 |
# File 'lib/zype/models/videos.rb', line 28 def download(id:) client.execute(method: :get, path: "/videos/#{id}/download") end |
#remove_zobjects(id:, zobject_ids:) ⇒ Hash
Removes zobjects from video
20 21 22 |
# File 'lib/zype/models/videos.rb', line 20 def remove_zobjects(id:, zobject_ids:) client.execute(method: :put, path: "/videos/#{id}/remove_zobjects", params: { zobject_id: zobject_ids }) end |