Class: HTTParty::CookieHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/httparty/cookie_hash.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#add_cookies(hash) ⇒ Object



2
3
4
# File 'lib/httparty/cookie_hash.rb', line 2

def add_cookies(hash)
  merge!(hash)
end


6
7
8
# File 'lib/httparty/cookie_hash.rb', line 6

def to_cookie_string
  collect { |k, v| "#{k}=#{v}" }.join("; ")
end