Sha256: d33982c91c05d1b42147b0e59d22821dcbde8681b83be205a3b96d8de875722b
Contents?: true
Size: 705 Bytes
Versions: 10
Compression:
Stored size: 705 Bytes
Contents
module LeadZeppelin module APNS class ErrorResponse CODES = { 0 => 'No errors encountered', 1 => 'Processing error', 2 => 'Missing device token', 3 => 'Missing topic', 4 => 'Missing payload', 5 => 'Invalid token size', 6 => 'Invalid topic size', 7 => 'Invalid payload size', 8 => 'Invalid token', 255 => 'None (unknown)' } attr_reader :code, :identifier, :message, :notification def initialize(packet, notification=nil) command, @code, @identifier = packet.unpack 'ccA4' @message = CODES[@code] @notification = notification end end end end
Version data entries
10 entries across 10 versions & 1 rubygems