module Podio
Handle HTTP response status codes
Custom Json response until I find a way to only parse the body once in the OAuth2 retry case
Do some debug logging
Retry requests with expired access tokens
Constants
- VERSION
Public Class Methods
client()
click to toggle source
# File lib/podio.rb, line 22 def client Thread.current[:podio_client] end
client=(new_client)
click to toggle source
# File lib/podio.rb, line 26 def client=(new_client) Thread.current[:podio_client] = new_client end
connection()
click to toggle source
# File lib/podio.rb, line 37 def connection client ? client.connection : nil end
setup(options={})
click to toggle source
# File lib/podio.rb, line 18 def setup(options={}) Podio.client = Podio::Client.new(options) end
with_client() { || ... }
click to toggle source
# File lib/podio.rb, line 30 def with_client old_client = Podio.client.try(:dup) yield ensure Podio.client = old_client end