Class: HTTP::Session::Options::PersistentOption

Inherits:
Object
  • Object
show all
Includes:
Optionable
Defined in:
lib/http/session/options/persistent_option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Optionable

#enabled?, #initialize_options

Constructor Details

#initialize(opts) ⇒ PersistentOption

Returns a new instance of PersistentOption.

Parameters:

  • opts (Hash)

Options Hash (opts):

  • :pools (Hash)

    parameters used to create ConnectionPool



12
13
14
15
16
17
# File 'lib/http/session/options/persistent_option.rb', line 12

def initialize(opts)
  initialize_options(opts)

  @pools =
    normalize_pools(@options.fetch(:pools, {"*" => true}))
end

Instance Attribute Details

#poolsObject (readonly)

Returns the value of attribute pools.



8
9
10
# File 'lib/http/session/options/persistent_option.rb', line 8

def pools
  @pools
end