ravelin 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ravelin/client.rb +2 -2
- data/lib/ravelin/response.rb +6 -2
- data/lib/ravelin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2d1f64cb0335c47d54b860e6f1db03826b45b8e
|
4
|
+
data.tar.gz: aa023d616d0a10adee50b1fcfcd7bc9aa71706cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 038b0c190025f0961186d6ae5e5bc31231cd19b58be4a629b42d288f593f40965f9cbd858a55c8869c7d71c754d485ae950fb23ea8be909b6cfd65e1d2a63068
|
7
|
+
data.tar.gz: 828d675ebd19dd026df379ea5fcdfc1954c340cdbb4d78f4c7d9c25750d63f84d8d231569f9c69bcf6b635e0679d17b90e85018384c275f7bdb3b5d2c75de99c
|
data/lib/ravelin/client.rb
CHANGED
@@ -47,8 +47,8 @@ module Ravelin
|
|
47
47
|
|
48
48
|
def delete_tag(**args)
|
49
49
|
tag = Tag.new(**args).serializable_hash
|
50
|
-
customer_id = tag[
|
51
|
-
tags = tag[
|
50
|
+
customer_id = tag["customerId"]
|
51
|
+
tags = tag["tagNames"].join(",")
|
52
52
|
|
53
53
|
delete("/v2/tag/customer?customerId=[#{customer_id}]&tagName=[#{tags}]")
|
54
54
|
end
|
data/lib/ravelin/response.rb
CHANGED
@@ -2,12 +2,14 @@ module Ravelin
|
|
2
2
|
class Response
|
3
3
|
attr_reader :customer_id,
|
4
4
|
:action,
|
5
|
+
:client_reviewed_status,
|
5
6
|
:score,
|
6
7
|
:score_id,
|
7
8
|
:source,
|
8
9
|
:comment,
|
9
10
|
:label,
|
10
11
|
:tag_names,
|
12
|
+
:tags,
|
11
13
|
:http_status,
|
12
14
|
:http_body
|
13
15
|
|
@@ -36,8 +38,10 @@ module Ravelin
|
|
36
38
|
end
|
37
39
|
|
38
40
|
def tag(response_body)
|
39
|
-
@tag_names
|
40
|
-
@label
|
41
|
+
@tag_names = response_body['tagNames']
|
42
|
+
@label = response_body['label'] if response_body.key?('label')
|
43
|
+
@tags = response_body['tags'] if response_body.key?('tags')
|
44
|
+
@client_reviewed_status = response_body['clientReviewedStatus'] if response_body.key?('clientReviewedStatus')
|
41
45
|
end
|
42
46
|
end
|
43
47
|
end
|
data/lib/ravelin/version.rb
CHANGED