Module: Lapse::Client::Frames
- Included in:
- Lapse::Client
- Defined in:
- lib/lapse/client/frames.rb
Overview
Client methods for working with clips
Instance Method Summary collapse
- #create_frame(clip_id) ⇒ Object
- #crop_frame(clip_id, frame_id, x, y, width, height) ⇒ Object
- #destroy_frame(clip_id, frame_id) ⇒ Object
Instance Method Details
#create_frame(clip_id) ⇒ Object
6 7 8 |
# File 'lib/lapse/client/frames.rb', line 6 def create_frame(clip_id) post("clips/#{clip_id}/frames").body end |
#crop_frame(clip_id, frame_id, x, y, width, height) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/lapse/client/frames.rb', line 14 def crop_frame(clip_id, frame_id, x, y, width, height) params = { x: x, y: y, width: width, height: height } boolean_from_response(:post, "clips/#{clip_id}/frames/#{frame_id}/crop", params) end |
#destroy_frame(clip_id, frame_id) ⇒ Object
10 11 12 |
# File 'lib/lapse/client/frames.rb', line 10 def destroy_frame(clip_id, frame_id) boolean_from_response(:delete, "clips/#{clip_id}/frames/#{frame_id}") end |