class Dropbox::WebClient::CookieManager
Cookie management, this is what will preserve our session
Public Class Methods
new()
click to toggle source
# File lib/dropbox/web_client/cookie_manager.rb, line 6 def initialize clear_cookies end
Public Instance Methods
all()
click to toggle source
Returns a hash with all collected cookies.
# File lib/dropbox/web_client/cookie_manager.rb, line 16 def all @cookies end
login_token()
click to toggle source
# File lib/dropbox/web_client/cookie_manager.rb, line 33 def login_token @cookies["t"] end
take(cookies)
click to toggle source
# File lib/dropbox/web_client/cookie_manager.rb, line 10 def take(cookies) @cookies ||= {} @cookies.merge! cookies end