lib/lapse/client/frames.rb in lapse-0.0.9 vs lib/lapse/client/frames.rb in lapse-0.0.10
- old
+ new
@@ -11,8 +11,19 @@
end
def destroy_frame(clip_id, frame_id)
boolean_from_response(:delete, "clips/#{clip_id}/frames/#{frame_id}")
end
+
+ 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
+
end
end
end