Module: Sinapse::Config
Instance Method Summary collapse
Instance Method Details
#channel_event ⇒ Object
17 18 19 |
# File 'lib/sinapse/config.rb', line 17 def channel_event !ENV["SINAPSE_CHANNEL_EVENT"].nil? end |
#cors_origin ⇒ Object
13 14 15 |
# File 'lib/sinapse/config.rb', line 13 def cors_origin default(:SINAPSE_CORS_ORIGIN, '*') end |
#keep_alive ⇒ Object
9 10 11 |
# File 'lib/sinapse/config.rb', line 9 def keep_alive default(:SINAPSE_KEEP_ALIVE, 15).to_i end |
#retry ⇒ Object
5 6 7 |
# File 'lib/sinapse/config.rb', line 5 def retry default(:SINAPSE_RETRY, 5).to_i * 1000 end |