Class: NotificationServer::Configuration
- Inherits:
-
Object
- Object
- NotificationServer::Configuration
- Defined in:
- lib/notification_server/configuration.rb
Class Method Summary collapse
Class Method Details
.forever ⇒ Object
7 |
# File 'lib/notification_server/configuration.rb', line 7 def forever; _config['forever'] end |
.hostname ⇒ Object
5 |
# File 'lib/notification_server/configuration.rb', line 5 def hostname; _config['hostname'] end |
.port ⇒ Object
6 |
# File 'lib/notification_server/configuration.rb', line 6 def port; _config['port'] end |
.script_path ⇒ Object
9 |
# File 'lib/notification_server/configuration.rb', line 9 def script_path; "#{secure ? 'https' : 'http'}://#{hostname}:#{port}/nowjs/now.js" end |
.secure ⇒ Object
8 |
# File 'lib/notification_server/configuration.rb', line 8 def secure; _config['secure'] end |