Module: Slack::RealTime::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/slack/real_time/config.rb

Defined Under Namespace

Classes: NoConcurrencyError

Constant Summary collapse

ATTRIBUTES =
[
  :token,
  :websocket_ping,
  :websocket_proxy,
  :concurrency
]

Instance Method Summary collapse

Instance Method Details

#concurrencyObject



24
25
26
# File 'lib/slack/real_time/config.rb', line 24

def concurrency
  (val = @concurrency).respond_to?(:call) ? val.call : val
end

#resetObject



17
18
19
20
21
22
# File 'lib/slack/real_time/config.rb', line 17

def reset
  self.websocket_ping = 30
  self.websocket_proxy = nil
  self.token = nil
  self.concurrency = method(:detect_concurrency)
end