nuntium_api 0.14 → 0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/nuntium.rb +1 -13
- metadata +3 -3
data/lib/nuntium.rb
CHANGED
@@ -258,18 +258,6 @@ class Nuntium
|
|
258
258
|
channel['configuration'] = Hash[channel['configuration'].map { |e| [e['name'], e['value']] }]
|
259
259
|
end
|
260
260
|
|
261
|
-
def return_channel(response)
|
262
|
-
return nil if response.class <= String
|
263
|
-
if response.respond_to?(:response) && response.response.class <= Net::HTTPSuccess
|
264
|
-
channel = response.parsed_response.with_indifferent_access
|
265
|
-
read_configuration channel
|
266
|
-
channel
|
267
|
-
else
|
268
|
-
# TODO should wrap in exception
|
269
|
-
response
|
270
|
-
end
|
271
|
-
end
|
272
|
-
|
273
261
|
def get(path)
|
274
262
|
resource = RestClient::Resource.new @url, @options
|
275
263
|
resource = resource[path].get
|
@@ -318,7 +306,7 @@ class Nuntium
|
|
318
306
|
yield nil, ex
|
319
307
|
end
|
320
308
|
|
321
|
-
def delete(path
|
309
|
+
def delete(path)
|
322
310
|
resource = RestClient::Resource.new @url, @options
|
323
311
|
resource = resource[path].delete
|
324
312
|
yield resource, nil
|
metadata
CHANGED