alula-ruby 1.10.2 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION.md +2 -0
- data/lib/alula/procedures/camera_get_sd_status_proc.rb +11 -0
- data/lib/alula/resources/video/device.rb +5 -0
- data/lib/alula/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057aa305fd3302b139bbcd929efe96b1d6c54318a06511fed226ea9d24cbcf2e
|
4
|
+
data.tar.gz: fe9c2192364c8e1c0e2c46705ab818fb52faccb95432a81d80ab42918538be81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa416c03697be2184072ee0b47e64bc35c91d61136e425c02065e5844d96b9269163afbb34ec9869f6bcd0f91d88f7fb2a9fb88ce5917d074d82407f75618cb
|
7
|
+
data.tar.gz: 3b08e6ddf6dbf136bdf0f7d6d2030542d7a65564ae73604656d594a09ea405dd31306dbe8be93d1a60e66b76b56729abf4f12d8a5ed27c6d6dbb03b8166c9fcf
|
data/VERSION.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v1.10.4 | 2024-10-07 | Adding sd_card_status to camera record, restructured sd status proc accessors |
|
6
|
+
| v1.10.3 | 2024-10-07 | Updating get_sd_status_proc to match video API's update |
|
5
7
|
| v1.10.2 | 2024-09-25 | Add custom filters to get_info_proc |
|
6
8
|
| v1.10.1 | 2024-09-20 | Update User model properties |
|
7
9
|
| v1.10.0 | 2024-09-18 | Add DeviceUser and HelixUser resources |
|
@@ -7,6 +7,17 @@
|
|
7
7
|
module Alula
|
8
8
|
class CameraGetSdStatusProc < Alula::RpcResource
|
9
9
|
class Response < Alula::RpcResponse
|
10
|
+
attr_accessor :result, :sd_card_status
|
11
|
+
|
12
|
+
def initialize(response)
|
13
|
+
super(response)
|
14
|
+
@result = response.data['result']
|
15
|
+
@sd_card_status = {
|
16
|
+
'format' => @result['format'],
|
17
|
+
'datetime' => @result['datetime'],
|
18
|
+
'progress' => @result['progress']
|
19
|
+
}
|
20
|
+
end
|
10
21
|
end
|
11
22
|
|
12
23
|
def self.call(device_id:)
|
@@ -65,6 +65,11 @@ module Alula
|
|
65
65
|
patchable_by: %i[system station dealer user],
|
66
66
|
creatable_by: %i[system station dealer user]
|
67
67
|
|
68
|
+
field :sd_card_status,
|
69
|
+
type: :object,
|
70
|
+
patchable_by: %i[system station dealer user],
|
71
|
+
creatable_by: %i[system station dealer user]
|
72
|
+
|
68
73
|
field :customer_id,
|
69
74
|
type: :string,
|
70
75
|
patchable_by: %i[system station dealer user],
|
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.4
|
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
|