Class: Wreq::Cookie

Inherits:
Object
  • Object
show all
Defined in:
lib/wreq_ruby/cookie.rb

Instance Method Summary collapse

Instance Method Details

#inspectString

Returns a short representation for debugging.

Returns:

  • (String)


199
200
201
202
203
204
205
206
# File 'lib/wreq_ruby/cookie.rb', line 199

def inspect
  parts = ["#<Wreq::Cookie", name]
  parts << "domain=#{domain}" if domain
  parts << "path=#{path}" if path
  parts << "secure" if secure?
  parts << "http_only" if http_only?
  parts.join(" ") + ">"
end