Class: PushyDaemon::Endpoint

Inherits:
Object
  • Object
show all
Includes:
Shared::LoggerHelper
Defined in:
lib/pushyd/endpoint.rb

Direct Known Subclasses

Proxy, Shouter

Constant Summary

Constants included from Shared::LoggerHelper

Shared::LoggerHelper::CONFIG_PATH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Shared::LoggerHelper

#logfile

Constructor Details

#initializeEndpoint

Returns a new instance of Endpoint.



14
15
16
17
18
19
20
# File 'lib/pushyd/endpoint.rb', line 14

def initialize
  # Prepare logger
  init_logger Conf[:logs]

  # Done
  log_info "endpoint initialized"
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



12
13
14
# File 'lib/pushyd/endpoint.rb', line 12

def logger
  @logger
end