Sha256: c1a6b7f073bb14d8f50699b60570aa7ba10c2ef82e2ef29f0b823dcbec079676
Contents?: true
Size: 605 Bytes
Versions: 5
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module Alula class CameraGetChimeInfoProc < Alula::RpcResource class Response < Alula::RpcResponse attr_accessor :result, :chime_info def initialize(response) super(response) @result = response.data['data'] @chime_info = { 'type' => @result['type'], 'duration' => @result['duration'] } end end def self.call(device_id:) request( http_method: :get, path: "/video/v1/device/#{device_id}/chime", handler: Response, payload: {} ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems