Class: HTTP::Cookies
Instance Method Summary collapse
- #[](cookie_name) ⇒ Object
-
#initialize(cookies) ⇒ Cookies
constructor
A new instance of Cookies.
Constructor Details
#initialize(cookies) ⇒ Cookies
Returns a new instance of Cookies.
57 58 59 |
# File 'lib/http_client/jruby/response.rb', line 57 def initialize() @cookies = end |
Instance Method Details
#[](cookie_name) ⇒ Object
61 62 63 |
# File 'lib/http_client/jruby/response.rb', line 61 def []() @cookies.find {|| .name == }.value end |