Class: HTTParty::CookieHash
- Inherits:
-
Hash
show all
- Defined in:
- lib/httparty/cookie_hash.rb
Overview
Instance Method Summary
collapse
Methods inherited from Hash
#normalize_param, #to_params, #to_xml_attributes
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
|
#to_cookie_string ⇒ Object
6
7
8
|
# File 'lib/httparty/cookie_hash.rb', line 6
def to_cookie_string
collect { |k, v| "#{k}=#{v}" }.join("; ")
end
|