module Slanger::Config

Public Instance Methods

[](key) click to toggle source
# File lib/slanger/config.rb, line 9
def [](key)
  options[key]
end
load(opts={}) click to toggle source
# File lib/slanger/config.rb, line 5
def load(opts={})
  options.update opts
end
method_missing(meth, *args, &blk) click to toggle source
# File lib/slanger/config.rb, line 21
def method_missing(meth, *args, &blk)
  options[meth]
end
options() click to toggle source
# File lib/slanger/config.rb, line 13
def options
  @options ||= {
    api_host: '0.0.0.0', api_port: '4567', websocket_host: '0.0.0.0',
    websocket_port: '8080', debug: false, redis_address: 'redis://0.0.0.0:6379/0',
    socket_handler: Slanger::Handler, require: [], activity_timeout: 120
  }
end