alula-ruby 1.10.4 → 1.10.5
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_chime_info_proc.rb +27 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59c0a310113d936038d7403de4c1dfa5d90bf8fbb960e17c1ef66761bf8aad43
|
4
|
+
data.tar.gz: 597408051879859c200fc483c88982dd7b1cff056d731f5e0e0e6eadb646146b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97db75fe5030f83ca1929c37cfb135bd5be82bd156495593f18c06517cd4094bea53c332f30fa9172a282e91c35036490a4c09894bae81563989e60f9af4b4e9
|
7
|
+
data.tar.gz: 0e764d69e7fdf2018a3b074dc3cca6bffc58663a385415eaa1e3b7499c6c40981f8ecb61060383daa8101da738a6da8b443091dc172425ef861efb3d2e28e39e
|
data/VERSION.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v1.10.5 | 2024-10-11 | Adding chime_info proc |
|
5
6
|
| v1.10.4 | 2024-10-07 | Adding sd_card_status to camera record, restructured sd status proc accessors |
|
6
7
|
| v1.10.3 | 2024-10-07 | Updating get_sd_status_proc to match video API's update |
|
7
8
|
| v1.10.2 | 2024-09-25 | Add custom filters to get_info_proc |
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Alula
|
4
|
+
class CameraGetChimeInfoProc < Alula::RpcResource
|
5
|
+
class Response < Alula::RpcResponse
|
6
|
+
attr_accessor :result, :chime_info
|
7
|
+
|
8
|
+
def initialize(response)
|
9
|
+
super(response)
|
10
|
+
@result = response.data['data']
|
11
|
+
@chime_info = {
|
12
|
+
'type' => @result['type'],
|
13
|
+
'duration' => @result['duration']
|
14
|
+
}
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.call(device_id:)
|
19
|
+
request(
|
20
|
+
http_method: :get,
|
21
|
+
path: "/video/v1/device/#{device_id}/chime",
|
22
|
+
handler: Response,
|
23
|
+
payload: {}
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/alula/version.rb
CHANGED
data/lib/alula.rb
CHANGED
@@ -96,6 +96,7 @@ require_relative 'alula/procedures/video_unregister_proc'
|
|
96
96
|
require_relative 'alula/procedures/camera_get_wifi_proc'
|
97
97
|
require_relative 'alula/procedures/camera_get_sd_status_proc'
|
98
98
|
require_relative 'alula/procedures/camera_get_info_proc'
|
99
|
+
require_relative 'alula/procedures/camera_get_chime_info_proc'
|
99
100
|
require_relative 'alula/procedures/camera_get_stats_proc'
|
100
101
|
require_relative 'alula/procedures/camera_get_svr_config_proc'
|
101
102
|
require_relative 'alula/procedures/camera_set_svr_config_proc'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alula-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -216,6 +216,7 @@ files:
|
|
216
216
|
- lib/alula/monkey_patches.rb
|
217
217
|
- lib/alula/oauth.rb
|
218
218
|
- lib/alula/pagination.rb
|
219
|
+
- lib/alula/procedures/camera_get_chime_info_proc.rb
|
219
220
|
- lib/alula/procedures/camera_get_info_proc.rb
|
220
221
|
- lib/alula/procedures/camera_get_rec_config_proc.rb
|
221
222
|
- lib/alula/procedures/camera_get_sd_status_proc.rb
|