Class: Alula::CameraGetFirmwareVersionProc

Inherits:
RpcResource
  • Object
show all
Defined in:
lib/alula/procedures/camera_get_firmware_version_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(device_id:) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/alula/procedures/camera_get_firmware_version_proc.rb', line 14

def self.call(device_id:)
  payload = {
    "deviceId": device_id
  }

  request(
    http_method: :post,
    path: '/video/v1/rpc/devices/get-firmware-version',
    payload:,
    handler: Response
  )
end