Class: APND::Settings::Notification
- Inherits:
-
Object
- Object
- APND::Settings::Notification
- Defined in:
- lib/apnd/settings.rb
Overview
Settings for APND::Notification
Instance Attribute Summary collapse
-
#host ⇒ Object
Host to send notification to, usually the one running APND::Daemon.
-
#port ⇒ Object
Port to send notifications to.
Instance Method Summary collapse
-
#initialize ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize ⇒ Notification
Returns a new instance of Notification.
101 102 103 104 |
# File 'lib/apnd/settings.rb', line 101 def initialize @host = 'localhost' @port = 22195 end |
Instance Attribute Details
#host ⇒ Object
Host to send notification to, usually the one running APND::Daemon
Default: localhost
92 93 94 |
# File 'lib/apnd/settings.rb', line 92 def host @host end |
#port ⇒ Object
Port to send notifications to
Default: 22195
99 100 101 |
# File 'lib/apnd/settings.rb', line 99 def port @port end |