alula-ruby 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION.md +1 -0
- data/lib/alula/procedures/camera_get_firmware_version_proc.rb +27 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a5c030dc25e12e66dfeba3db613a92b54fdc53e821351a51e78da43efd2d9be
|
4
|
+
data.tar.gz: f869b4408ac1b0179baf1114b6fe6cc380d8d76e40fb7652614968ee3f05d3c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3045b8f512ce320edfbc6e8b79392e83fbcda4fd2adef9cc5403e7979025d075bb3ebeafa8ff00e7e69e3ba40858f0a4883021a49116d0127139a4632ccc50de
|
7
|
+
data.tar.gz: 6a5dd45a244df7c4e98eb5412a245025018debf109ea9524dc41e0ba6ec2a40fa7ff1fa45ea13e78a0abd122a5fbf7df00bd09c9883e61d4c3009c8e28cc675d
|
data/VERSION.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v2.1.2 | 2024-11-12 | Add CameraGetFirmwareVersionProc |
|
5
6
|
| v2.1.1 | 2024-11-12 | Add device record attribute |
|
6
7
|
| v2.1.0 | 2024-10-24 | Bump multiple dependencies |
|
7
8
|
| v2.0.0 | 2024-10-17 | Add device helpers, breaking change - removed `is_` from methods returning a boolean |
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Alula
|
4
|
+
class CameraGetFirmwareVersionProc < Alula::RpcResource
|
5
|
+
class Response < Alula::RpcResponse
|
6
|
+
attr_accessor :result
|
7
|
+
|
8
|
+
def initialize(response)
|
9
|
+
super(response)
|
10
|
+
@result = response.data
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.call(device_id:)
|
15
|
+
payload = {
|
16
|
+
"deviceId": device_id
|
17
|
+
}
|
18
|
+
|
19
|
+
request(
|
20
|
+
http_method: :post,
|
21
|
+
path: '/video/v1/rpc/devices/get-firmware-version',
|
22
|
+
payload:,
|
23
|
+
handler: Response
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/alula/version.rb
CHANGED
data/lib/alula.rb
CHANGED
@@ -103,6 +103,7 @@ require_relative 'alula/procedures/camera_get_svr_config_proc'
|
|
103
103
|
require_relative 'alula/procedures/camera_set_svr_config_proc'
|
104
104
|
require_relative 'alula/procedures/camera_get_rec_config_proc'
|
105
105
|
require_relative 'alula/procedures/camera_set_rec_config_proc'
|
106
|
+
require_relative 'alula/procedures/camera_get_firmware_version_proc'
|
106
107
|
|
107
108
|
module Alula
|
108
109
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alula-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Johnson
|
@@ -218,6 +218,7 @@ files:
|
|
218
218
|
- lib/alula/oauth.rb
|
219
219
|
- lib/alula/pagination.rb
|
220
220
|
- lib/alula/procedures/camera_get_chime_info_proc.rb
|
221
|
+
- lib/alula/procedures/camera_get_firmware_version_proc.rb
|
221
222
|
- lib/alula/procedures/camera_get_info_proc.rb
|
222
223
|
- lib/alula/procedures/camera_get_rec_config_proc.rb
|
223
224
|
- lib/alula/procedures/camera_get_sd_status_proc.rb
|