alula-ruby 1.10.1 → 1.10.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95102c59ac7683b2ceff20a0c4eff6aad9539253e56c3e97f5804468a403389f
|
4
|
+
data.tar.gz: 2377688056ea04e8f4ce1e9f836ac5601c3b9bca1af48610902c5377bbef1aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa3eae80f10870a392bf1fbe2f33947b91a7bd72e84052a556f1eac281405dabb500b16bd0371195f0867e08c8a201d51ab5a31d4bff6316aa40346b03816559
|
7
|
+
data.tar.gz: 78c69fd3c436713c7c36c120fbfcf56dee5924f5b5917275e3dfff4b7131c0a5018314346a8bb687ebd8d26706a8102322832d58ab66aa7e93cf1344617bdcfd
|
data/VERSION.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v1.10.3 | 2024-10-07 | Updating get_sd_status_proc to match video API's update |
|
6
|
+
| v1.10.2 | 2024-09-25 | Add custom filters to get_info_proc |
|
5
7
|
| v1.10.1 | 2024-09-20 | Update User model properties |
|
6
8
|
| v1.10.0 | 2024-09-18 | Add DeviceUser and HelixUser resources |
|
7
9
|
| 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
|
+
|
@@ -7,6 +7,15 @@
|
|
7
7
|
module Alula
|
8
8
|
class CameraGetSdStatusProc < Alula::RpcResource
|
9
9
|
class Response < Alula::RpcResponse
|
10
|
+
attr_accessor :result, :sd_format, :timestamp, :progress
|
11
|
+
|
12
|
+
def initialize(response)
|
13
|
+
super(response)
|
14
|
+
@result = response.data['result']
|
15
|
+
@sd_format = @result['format']
|
16
|
+
@timestamp = @result['datetime']
|
17
|
+
@progress = @result['progress']['percent']
|
18
|
+
end
|
10
19
|
end
|
11
20
|
|
12
21
|
def self.call(device_id:)
|
data/lib/alula/version.rb
CHANGED
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.3
|
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-
|
11
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|