Sha256: ef27c1861f1ae35edf7e9d3234170fca33b79683a99ccf192092c9bebbf9fda0
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
# Copyright © 2014, Evercam. module Evercam module Public # This method fetches a list of public and discoverable cameras from # with Evercam. # # ==== Parameters # critera:: A Hash of search criteria to use for the list returned # by the request. Currently recognised options include # :case_sensitive, :id_starts_with, :id_ends_with, # :id_contains, :offset and :limit. def get_public_cameras(criteria={}) data = handle_response(call("/public/cameras", :get, criteria)) if !data.include?("cameras") message = "Invalid response received from server." @logger.error message raise EvercamError.new(message) end {cameras: data["cameras"], pages: data["pages"]} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
evercam-0.1.2 | lib/evercam/public.rb |
evercam-0.1.1 | lib/evercam/public.rb |