lib/pushbullet/permanents.rb in pushbullet_client-0.0.13 vs lib/pushbullet/permanents.rb in pushbullet_client-0.0.14
- old
+ new
@@ -4,19 +4,23 @@
def permanents(device_identity:, params: {}, cursor: nil)
@disable_limit = true
params = process_cursor(cursor, params: params)
path = "permanents/#{device_identity}_threads"
- authorise_and_send(http_method: :get, path: path, params: params)
+ response = authorise_and_send(http_method: :get, path: path, params: params)
@disable_limit = false
+
+ response
end
def permanent_conversation(device_identity:, thread_id:, params: {}, cursor: nil)
@disable_limit = true
params = process_cursor(cursor, params: params)
path = "permanents/#{device_identity}_thread_#{thread_id}"
- authorise_and_send(http_method: :get, path: path, params: params)
+ response = authorise_and_send(http_method: :get, path: path, params: params)
@disable_limit = false
+
+ response
end
end
end