# frozen_string_literal: true module Alula class CameraGetFirmwareVersionProc < Alula::RpcResource class Response < Alula::RpcResponse attr_accessor :result def initialize(response) super(response) @result = response.data end end 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 end end