Class: Dropcam::CuepointBase
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #all(limit = 2500) ⇒ Object
- #cuepoint(start_time) ⇒ Object
-
#initialize(camera) ⇒ CuepointBase
constructor
A new instance of CuepointBase.
Methods inherited from Base
Constructor Details
#initialize(camera) ⇒ CuepointBase
Returns a new instance of CuepointBase.
3 4 5 |
# File 'lib/dropcam/cuepoint_base.rb', line 3 def initialize(camera) @camera = camera end |
Instance Method Details
#all(limit = 2500) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dropcam/cuepoint_base.rb', line 7 def all(limit=2500) params = {"uuid"=>@camera.uuid, "max_results"=>limit} response = get(::NEXUS_GET_REVERSE_PAGINATED_CUEPOINTS_PATH, params, @camera., true) cuepoints = [] all_cuepoints = JSON.parse(response.body) for cuepoint in all_cuepoints cuepoints.push Cuepoint.new(cuepoint) end cuepoints end |