Class: Dropcam::Cuepoint
- Inherits:
-
CuepointBase
- Object
- Base
- CuepointBase
- Dropcam::Cuepoint
- Defined in:
- lib/dropcam/cuepoint.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#note ⇒ Object
readonly
Returns the value of attribute note.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
- #image_archive(number_of_frames, width) ⇒ Object
-
#initialize(camera, details) ⇒ Cuepoint
constructor
A new instance of Cuepoint.
- #mp4(number_of_frames, width) ⇒ Object
Methods inherited from CuepointBase
Methods inherited from Base
Constructor Details
#initialize(camera, details) ⇒ Cuepoint
Returns a new instance of Cuepoint.
8 9 10 11 12 13 14 |
# File 'lib/dropcam/cuepoint.rb', line 8 def initialize(camera,details) super(camera) @id = details["id"] @note = details["note"] @type = details["type"] @time = details["time"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/dropcam/cuepoint.rb', line 6 def id @id end |
#note ⇒ Object (readonly)
Returns the value of attribute note.
6 7 8 |
# File 'lib/dropcam/cuepoint.rb', line 6 def note @note end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
6 7 8 |
# File 'lib/dropcam/cuepoint.rb', line 6 def time @time end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/dropcam/cuepoint.rb', line 6 def type @type end |
Instance Method Details
#image_archive(number_of_frames, width) ⇒ Object
20 21 22 |
# File 'lib/dropcam/cuepoint.rb', line 20 def image_archive(number_of_frames, width) ClipArchive.new(@camera).image_archive(self.id, number_of_frames, width) end |
#mp4(number_of_frames, width) ⇒ Object
16 17 18 |
# File 'lib/dropcam/cuepoint.rb', line 16 def mp4(number_of_frames, width) ClipArchive.new(@camera).get_mp4(self.id, number_of_frames, width) end |