Class: EventMachine::APN::LogMessage
- Inherits:
-
Object
- Object
- EventMachine::APN::LogMessage
- Defined in:
- lib/em-apn/log_message.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ LogMessage
constructor
A new instance of LogMessage.
- #log ⇒ Object
Constructor Details
#initialize(response) ⇒ LogMessage
Returns a new instance of LogMessage.
4 5 6 |
# File 'lib/em-apn/log_message.rb', line 4 def initialize(response) @response = response end |
Instance Method Details
#log ⇒ Object
8 9 10 |
# File 'lib/em-apn/log_message.rb', line 8 def log EM::APN.logger.info(@response.to_s) end |