tickethub 0.3.71 → 0.3.72
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tickethub/collection.rb +8 -0
- data/lib/tickethub/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: ce540a27cb1492ec03311172f1e9d388a63996b1
|
4
|
+
data.tar.gz: 72d79a6ba1219683705c79a33e39b667f36578fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074321d4e1d5e551fc3517e50b4a73bd4ec17ab5de6d0bdf907bad0b70e6c17eef24f57e72582f8a4e14f8ce560999e6105783bbffb66e5aa806ec2d3dd1b961
|
7
|
+
data.tar.gz: d30cb8ee8b06b2a090872e687e7e1091439994bbeb7159bde8a0670b814cd90109f072ec70f42ce8b112075518dba710df0475769aacc3db97008e764992911e
|
data/lib/tickethub/collection.rb
CHANGED
@@ -159,5 +159,13 @@ module Tickethub
|
|
159
159
|
rescue Tickethub::ResourceInvalid => err
|
160
160
|
@klass.call endpoint, Tickethub::Response.new(err.response).decoded, @options
|
161
161
|
end
|
162
|
+
|
163
|
+
def update(attributes)
|
164
|
+
self.patch attributes
|
165
|
+
return true
|
166
|
+
rescue Tickethub::ResourceInvalid => err
|
167
|
+
@klass.call endpoint, Tickethub::Response.new(err.response).decoded, @options
|
168
|
+
return false
|
169
|
+
end
|
162
170
|
end
|
163
171
|
end
|
data/lib/tickethub/version.rb
CHANGED