module Tom::Config

Don't use this module directly - access these methods through {Tom} who does a `extend Tom::Config`

Public Instance Methods

config() click to toggle source

@return [Hash] configuration

# File lib/tom/config.rb, line 8
def config
  @config || default_config
end
config=(config) click to toggle source

@param config [Hash] The configuration you want

to set. Currently, only the `:timeout` key is 
read, and in it the `:connect_timeout` and the
`:inactivity_timeout` keys can be set to an int
value (seconds)

@return [Hash] configuration

# File lib/tom/config.rb, line 19
def config=(config)
  @config = config
end

Private Instance Methods

default_config() click to toggle source
# File lib/tom/config.rb, line 26
def default_config
  { timeouts:
    { connect_timeout: 5,
      inactivity_timeout: 10 } }
end