Class: APND::Settings::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/apnd/settings.rb

Overview

Settings for APND::Notification

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNotification

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

#hostObject

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

#portObject

Port to send notifications to

Default: 22195


99
100
101
# File 'lib/apnd/settings.rb', line 99

def port
  @port
end