Class: Editframe::Video

Inherits:
APIResource show all
Defined in:
lib/editframe/resources/video.rb

Constant Summary collapse

OBJECT_PATH =
'videos/'

Class Method Summary collapse

Methods inherited from APIResource

all, base_url, find, perform_get_request, perform_post_request, retrieve_headers

Class Method Details

.build(options) ⇒ Object



6
7
8
# File 'lib/editframe/resources/video.rb', line 6

def self.build(options)
  VideoBuilder.new options
end

.encode(body) ⇒ Object



10
11
12
# File 'lib/editframe/resources/video.rb', line 10

def self.encode(body)
  self.perform_post_request(body: body, is_form: true)
end

.encode_from_clip(body) ⇒ Object



14
15
16
# File 'lib/editframe/resources/video.rb', line 14

def self.encode_from_clip(body)
  self.perform_post_request('clip', body: body, is_form: true)
end

.from_clip(options) ⇒ Object



18
19
20
# File 'lib/editframe/resources/video.rb', line 18

def self.from_clip(options)
  VideoClip.new options
end