Class: Alula::CameraSetRecordingConfigProc
- Inherits:
-
RpcResource
- Object
- RpcResource
- Alula::CameraSetRecordingConfigProc
- Defined in:
- lib/alula/procedures/camera_set_rec_config_proc.rb
Defined Under Namespace
Classes: Response
Class Method Summary collapse
Methods inherited from RpcResource
Class Method Details
.call(event:, allday:) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/alula/procedures/camera_set_rec_config_proc.rb', line 8 def self.call(event:, allday:) payload = { "event": event, "allday": allday } request( http_method: :post, path: "/v1/device/#{serial_number}/recordConfig", payload: payload, handler: Response ) end |