Class: APND::Settings::Daemon
- Inherits:
-
Object
- Object
- APND::Settings::Daemon
- Defined in:
- lib/apnd/settings.rb
Overview
Settings for APND::Daemon
Instance Attribute Summary collapse
-
#bind ⇒ Object
IP to bind APND::Daemon to.
-
#log_file ⇒ Object
Path to APND::Daemon log.
-
#port ⇒ Object
Port APND::Daemon will run on.
-
#timer ⇒ Object
Interval (in seconds) the queue will be processed.
Instance Method Summary collapse
-
#initialize ⇒ Daemon
constructor
A new instance of Daemon.
Constructor Details
#initialize ⇒ Daemon
Returns a new instance of Daemon.
74 75 76 77 78 79 |
# File 'lib/apnd/settings.rb', line 74 def initialize @timer = 30 @bind = '0.0.0.0' @port = 22195 @log_file = '/var/log/apnd.log' end |
Instance Attribute Details
#bind ⇒ Object
IP to bind APND::Daemon to
Default: '0.0.0.0'
51 52 53 |
# File 'lib/apnd/settings.rb', line 51 def bind @bind end |
#log_file ⇒ Object
Path to APND::Daemon log
Default: /var/log/apnd.log
65 66 67 |
# File 'lib/apnd/settings.rb', line 65 def log_file @log_file end |
#port ⇒ Object
Port APND::Daemon will run on
Default: 22195
58 59 60 |
# File 'lib/apnd/settings.rb', line 58 def port @port end |
#timer ⇒ Object
Interval (in seconds) the queue will be processed
Default: 30
72 73 74 |
# File 'lib/apnd/settings.rb', line 72 def timer @timer end |