module Sinapse::Config
Public Instance Methods
channel_event()
click to toggle source
# File lib/sinapse/config.rb, line 17 def channel_event !ENV["SINAPSE_CHANNEL_EVENT"].nil? end
cors_origin()
click to toggle source
# File lib/sinapse/config.rb, line 13 def cors_origin default(:SINAPSE_CORS_ORIGIN, '*') end
keep_alive()
click to toggle source
# File lib/sinapse/config.rb, line 9 def keep_alive default(:SINAPSE_KEEP_ALIVE, 15).to_i end
retry()
click to toggle source
# File lib/sinapse/config.rb, line 5 def retry default(:SINAPSE_RETRY, 5).to_i * 1000 end
Private Instance Methods
default(name, default_value)
click to toggle source
# File lib/sinapse/config.rb, line 23 def default(name, default_value) if ENV.has_key?(name.to_s) ENV[name.to_s] else default_value.to_s end end