Class: Zype::Zobjects
- Defined in:
- lib/zype/models/zobjects.rb
Overview
Read more at docs.zype.com/v1.0/reference#zobject
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#add_videos(id:, video_ids:, type:) ⇒ Hash
Add videos to a Zobject.
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_videos(id:, video_ids:, type:) ⇒ Hash
Add videos to a Zobject
12 13 14 |
# File 'lib/zype/models/zobjects.rb', line 12 def add_videos(id:, video_ids:, type:) client.execute(method: :put, path: "/#{path}/#{id}/add_videos", params: {video_id: video_ids, zobject_type: type}) end |