class EventMachine::ApnManager::ErrorResponse
Constants
- DESCRIPTION
Attributes
command[R]
identifier[R]
status_code[R]
Public Class Methods
new(command, status_code, identifier)
click to toggle source
# File lib/em_apn_manager/error_response.rb, line 21 def initialize(command, status_code, identifier) @command = command @status_code = status_code @identifier = identifier end
Public Instance Methods
description()
click to toggle source
# File lib/em_apn_manager/error_response.rb, line 31 def description DESCRIPTION[@status_code] || "Missing description" end
to_s()
click to toggle source
# File lib/em_apn_manager/error_response.rb, line 27 def to_s "CODE=#{@status_code} ID=#{@identifier} DESC=#{description}" end