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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9fd34e06b320e95e85ed96db0802051c56b6c84
4
- data.tar.gz: f837c895a1a3d30e79a94166adac132ed6d28ebf
3
+ metadata.gz: f2d1f64cb0335c47d54b860e6f1db03826b45b8e
4
+ data.tar.gz: aa023d616d0a10adee50b1fcfcd7bc9aa71706cf
5
5
  SHA512:
6
- metadata.gz: 41fd504ab631bf9f6fa20d00805e87c4ce3edc8c87f401b800524cf7e86d46026392d393e769feb4975bc75ef230239c3f5901f495877092d8042861c744c454
7
- data.tar.gz: bb77a2536f299d9cf6a6e688c25a15affff2217326da078de5cc0ec6c6283a13478c7d3411fee52b7b1539b069eb23dc561bc8e75953b06f50ed69542cec8d35
6
+ metadata.gz: 038b0c190025f0961186d6ae5e5bc31231cd19b58be4a629b42d288f593f40965f9cbd858a55c8869c7d71c754d485ae950fb23ea8be909b6cfd65e1d2a63068
7
+ data.tar.gz: 828d675ebd19dd026df379ea5fcdfc1954c340cdbb4d78f4c7d9c25750d63f84d8d231569f9c69bcf6b635e0679d17b90e85018384c275f7bdb3b5d2c75de99c
@@ -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[:customerId]
51
- tags = tag[:tagNames].join(",")
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
@@ -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 = response_body['tagNames']
40
- @label = response_body['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
@@ -1,3 +1,3 @@
1
1
  module Ravelin
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ravelin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Levy