Class: Dropcam::ClipArchive
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #get_mp4(cuepoint_id, number_of_frames, width) ⇒ Object
- #image_archive(cuepoint_id, number_of_frames, width) ⇒ Object
-
#initialize(camera) ⇒ ClipArchive
constructor
A new instance of ClipArchive.
Methods inherited from Base
Constructor Details
#initialize(camera) ⇒ ClipArchive
Returns a new instance of ClipArchive.
6 7 8 |
# File 'lib/dropcam/clip_archive.rb', line 6 def initialize(camera) @camera = camera end |
Instance Method Details
#get_mp4(cuepoint_id, number_of_frames, width) ⇒ Object
14 15 16 |
# File 'lib/dropcam/clip_archive.rb', line 14 def get_mp4(cuepoint_id, number_of_frames, width) clip_with_format(cuepoint_id, number_of_frames, width, "h264") end |
#image_archive(cuepoint_id, number_of_frames, width) ⇒ Object
10 11 12 |
# File 'lib/dropcam/clip_archive.rb', line 10 def image_archive(cuepoint_id, number_of_frames, width) clip_with_format(cuepoint_id, number_of_frames, width, "TAR_JPG") end |