Class: Zype::VideoImports

Inherits:
BaseModel show all
Defined in:
lib/zype/models/video_imports.rb

Overview

Since:

  • 0.12.0

Constant Summary

Constants inherited from BaseModel

BaseModel::ACCEPTED_KEYS

Instance Attribute Summary

Attributes inherited from BaseModel

#client, #path

Instance Method Summary collapse

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_video(id:) ⇒ Hash

Attach a video to a video import

Parameters:

  • id (String)

    the ID of the video import

Returns:

  • (Hash)

    the video import object

Since:

  • 0.12.0



16
17
18
# File 'lib/zype/models/video_imports.rb', line 16

def add_video(id:)
  client.execute(method: :put, path: "/#{path}/#{id}/add_video")
end