alula-ruby 1.10.1 → 1.10.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_info_proc.rb +4 -1
- data/lib/alula/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20dfb92c4f24024d650790929e1d4b4ae5e7457be5b635cc0f50dc520637af4b
|
4
|
+
data.tar.gz: 4323a2e2afa604bb6efa50383af2ca174f08a3bdce6a59ebf47d6ebe17ab29ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64db8044f947e291a657583d0bc6f0fdd9a80a30904a43db39a6dc64acdcceb10a0d23aac9cc0a7461df8647374120e35cdd319e8f5526d180896c6b9382ad6c
|
7
|
+
data.tar.gz: 434dbb009f19c568438357dcd39a9b8350468488053221b89fda926908d852f164f9ab07ef57eb0217625d5ad58292fab917a2f4d7f5f9e7c18f6cb7844dcd3a
|
data/VERSION.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v1.10.2 | 2024-09-25 | Add custom filters to get_info_proc |
|
5
6
|
| v1.10.1 | 2024-09-20 | Update User model properties |
|
6
7
|
| v1.10.0 | 2024-09-18 | Add DeviceUser and HelixUser resources |
|
7
8
|
| v1.9.17 | 2024-09-17 | Bump HTTParty version |
|
@@ -20,13 +20,15 @@ module Alula
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.call(device_id:, filter_online_offline:, page_size: 20, page_number: 1)
|
23
|
+
def self.call(device_id:, filter_online_offline:, page_size: 20, page_number: 1, filter: {})
|
24
24
|
query_params = {
|
25
25
|
'sort' => '-date',
|
26
26
|
'page[size]' => page_size,
|
27
27
|
'page[number]' => page_number
|
28
28
|
}
|
29
29
|
|
30
|
+
query_params.merge!(filter)
|
31
|
+
|
30
32
|
if filter_online_offline
|
31
33
|
query_params.merge!(
|
32
34
|
'filter[data.online.value][$not][0]' => 0,
|
@@ -46,3 +48,4 @@ module Alula
|
|
46
48
|
end
|
47
49
|
end
|
48
50
|
end
|
51
|
+
|
data/lib/alula/version.rb
CHANGED