Class: HTTP::Session::Options::CookiesOption
- Inherits:
-
Object
- Object
- HTTP::Session::Options::CookiesOption
- Includes:
- Optionable
- Defined in:
- lib/http/session/options/cookies_option.rb
Instance Attribute Summary collapse
-
#jar ⇒ Object
readonly
Returns the value of attribute jar.
Instance Method Summary collapse
-
#initialize(opts) ⇒ CookiesOption
constructor
A new instance of CookiesOption.
Methods included from Optionable
#enabled?, #initialize_options
Constructor Details
#initialize(opts) ⇒ CookiesOption
Returns a new instance of CookiesOption.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/http/session/options/cookies_option.rb', line 12 def initialize(opts) (opts) # CookieJar @jar = if enabled? jar = @options[:jar] lookup_jar(jar) end end |
Instance Attribute Details
#jar ⇒ Object (readonly)
Returns the value of attribute jar.
8 9 10 |
# File 'lib/http/session/options/cookies_option.rb', line 8 def jar @jar end |