seamapi 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seam/clients/access_codes.rb +6 -5
- data/lib/seam/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: 73bba18dbdf9351d8a533d80ee8557daf82a7f70ac54913f43e451b00112233d
|
4
|
+
data.tar.gz: 32cb605049a568bc4ddcdddbf8ea7805a597bb35e2975df8218200ba3cc391ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8918125f1d62599c7bccc41dd7be97cab6153c0c00edeed5176d263072560ccbafde19b694d5a312887765e4a930ad5bce8b6069009ffb9415ca8f048293b949
|
7
|
+
data.tar.gz: 8b7cae02aa8cfb8fc757a44b8e8affeeccb354a2935a5f358a4eb008d45b6c0520d44ccdb07e77404aa7d5ad12ec1356f89afc89e5bd3b29c0c5a2564f716654
|
data/Gemfile.lock
CHANGED
@@ -13,15 +13,15 @@ module Seam
|
|
13
13
|
)
|
14
14
|
end
|
15
15
|
|
16
|
-
def list(device_or_id)
|
16
|
+
def list(device_or_id = nil, access_code_ids: nil)
|
17
17
|
device_id = device_or_id.is_a?(Seam::Device) ? device_or_id.device_id : device_or_id
|
18
18
|
|
19
19
|
request_seam_object(
|
20
|
-
:
|
20
|
+
:post,
|
21
21
|
"/access_codes/list",
|
22
22
|
Seam::AccessCode,
|
23
23
|
"access_codes",
|
24
|
-
|
24
|
+
body: {device_id: device_id, access_code_ids: access_code_ids}.compact
|
25
25
|
)
|
26
26
|
end
|
27
27
|
|
@@ -50,7 +50,7 @@ module Seam
|
|
50
50
|
action_attempt
|
51
51
|
end
|
52
52
|
|
53
|
-
def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil)
|
53
|
+
def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil, type: nil)
|
54
54
|
action_attempt = request_seam_object(
|
55
55
|
:post,
|
56
56
|
"/access_codes/update",
|
@@ -61,7 +61,8 @@ module Seam
|
|
61
61
|
name: name,
|
62
62
|
code: code,
|
63
63
|
starts_at: starts_at,
|
64
|
-
ends_at: ends_at
|
64
|
+
ends_at: ends_at,
|
65
|
+
type: type
|
65
66
|
}.compact
|
66
67
|
)
|
67
68
|
action_attempt.wait_until_finished
|
data/lib/seam/version.rb
CHANGED