wes-data-api 7.0.0 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wes/data/api.rb +1 -1
- data/lib/wes/data/api/model/reward.rb +9 -0
- 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: 5b679fe9e0da82150a343e0254f8b2e2f92c2df1
|
4
|
+
data.tar.gz: d8337cc6f4170c81cbe7d1b3990f6ed5fe8edf85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63388870113430a3d7ad1f19b9daa67cb2901ed05c38e7606feda277f24bb1703bba1eb2d4a54c738175185fcee55144e0a3392cc079299d2580fa7da288e14a
|
7
|
+
data.tar.gz: 947a8069e894db1913fe57604d6f3138c5d9428790abecb4459dede7a12a6f3f44af123851d635631b5b3082b42f973d59621fee6d4feef3f44de3a0e8372c28
|
data/lib/wes/data/api.rb
CHANGED
@@ -9,6 +9,15 @@ module Wes
|
|
9
9
|
route = [routes.reward, id].join("/")
|
10
10
|
client.delete(route)
|
11
11
|
end
|
12
|
+
|
13
|
+
def update(changes)
|
14
|
+
route = [routes.reward, id].join("/")
|
15
|
+
@attributes = client.put(
|
16
|
+
route, @attributes.to_h.merge(changes)
|
17
|
+
).first
|
18
|
+
|
19
|
+
self
|
20
|
+
end
|
12
21
|
end
|
13
22
|
end
|
14
23
|
end
|