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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31b8615dcefa088ac76fc1cc49d39694847717cd
4
- data.tar.gz: 34fc55122d7030b1085dc50b2b29abd786dca59a
3
+ metadata.gz: 5b679fe9e0da82150a343e0254f8b2e2f92c2df1
4
+ data.tar.gz: d8337cc6f4170c81cbe7d1b3990f6ed5fe8edf85
5
5
  SHA512:
6
- metadata.gz: ede67f67f12fc0f7c46fd8d237284ba153a0018ec47d797a749c837ab56b24d84138d004820a68297fde4d0668a4b1f76a4b0a2bdd0ac2a38efc81ade017ad91
7
- data.tar.gz: 71d40e3b622d38b15d9d28b25ef4db7ceb3bbb3321ac37bf828b4d9c72da5729715e2f592dac94024394c968bab1e420736f91b5d7a0a7add0523a31bded224b
6
+ metadata.gz: 63388870113430a3d7ad1f19b9daa67cb2901ed05c38e7606feda277f24bb1703bba1eb2d4a54c738175185fcee55144e0a3392cc079299d2580fa7da288e14a
7
+ data.tar.gz: 947a8069e894db1913fe57604d6f3138c5d9428790abecb4459dede7a12a6f3f44af123851d635631b5b3082b42f973d59621fee6d4feef3f44de3a0e8372c28
data/lib/wes/data/api.rb CHANGED
@@ -5,7 +5,7 @@ require "wes/data/api/configuration"
5
5
  module Wes
6
6
  module Data
7
7
  module API
8
- VERSION = "7.0.0".freeze
8
+ VERSION = "7.1.0".freeze
9
9
  end
10
10
  end
11
11
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wes-data-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''