Class: HTTP::Session::Options::PersistentOption
- Inherits:
-
Object
- Object
- HTTP::Session::Options::PersistentOption
- Includes:
- Optionable
- Defined in:
- lib/http/session/options/persistent_option.rb
Instance Attribute Summary collapse
-
#pools ⇒ Object
readonly
Returns the value of attribute pools.
Instance Method Summary collapse
-
#initialize(opts) ⇒ PersistentOption
constructor
A new instance of PersistentOption.
Methods included from Optionable
#enabled?, #initialize_options
Constructor Details
#initialize(opts) ⇒ PersistentOption
Returns a new instance of PersistentOption.
12 13 14 15 16 17 |
# File 'lib/http/session/options/persistent_option.rb', line 12 def initialize(opts) (opts) @pools = normalize_pools(@options.fetch(:pools, {"*" => true})) end |
Instance Attribute Details
#pools ⇒ Object (readonly)
Returns the value of attribute pools.
8 9 10 |
# File 'lib/http/session/options/persistent_option.rb', line 8 def pools @pools end |