Module: WatchDoge::CookiePool
- Defined in:
- lib/watchdoge/cookie_pool.rb
Class Method Summary collapse
Class Method Details
.source(uid, uri = nil) ⇒ Object
9 10 11 12 13 |
# File 'lib/watchdoge/cookie_pool.rb', line 9 def source uid, uri = nil suffix = "_#{Digest::MD5.hexdigest(uri.to_s)[0..5]}" if uri "#{WatchDoge.configuration.cookie_pool}/#{uid}#{suffix}" end |