Class: Dropcam::ClipArchive

Inherits:
Base
  • Object
show all
Defined in:
lib/dropcam/clip_archive.rb

Instance Attribute Summary

Attributes inherited from Base

#cookies, #session_token

Instance Method Summary collapse

Methods inherited from Base

#delete, #get, #post

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