Sha256: 5ed6671c1a1b3628c005170c1fdbad762f8aca41181fa04db5196f5c892952f9

Contents?: true

Size: 161 Bytes

Versions: 4

Compression:

Stored size: 161 Bytes

Contents

class HTTParty::CookieHash < Hash
  def add_cookies(hash)
    merge!(hash)
  end

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jnunemaker-httparty-0.2.10 lib/httparty/cookie_hash.rb
jnunemaker-httparty-0.2.9 lib/httparty/cookie_hash.rb
httparty-0.2.10 lib/httparty/cookie_hash.rb
httparty-0.2.9 lib/httparty/cookie_hash.rb