lib/smpp/pdu/submit_sm.rb
def to_human
    # convert header (4 bytes) to array of 4-byte ints
    a = @data.to_s.unpack('N4')
    sprintf("(%22s) len=%3d cmd=%8s status=%1d seq=%03d (%s)", self.class.to_s[11..-1], a[0], a[1].to_s(16), a[2], a[3], @msg_body[0..30])
  end
# some special formatting is needed for SubmitSm PDUs to show the actual message content
some special formatting is needed for SubmitSm PDUs to show the actual message content
some special formatting is needed for SubmitSm PDUs to show the actual message content
def to_human
    a = @data.to_s.unpack('N4')
    sprintf("(%22s) len=%3d cmd=%8s status=%1d seq=%03d (%s)", self.class.to_s[11..-1], a[0], a[1].to_s(16), a[2], a[3], @msg_body[0..30])
  end
def to_human a = @data . to_s . unpack ( 'N4' ) sprintf ( "(%22s) len=%3d cmd=%8s status=%1d seq=%03d (%s)" , self . class . to_s [ 11 .. - 1 ] , a [ 0 ] , a [ 1 ] . to_s ( 16 ) , a [ 2 ] , a [ 3 ] , @msg_body [ 0 .. 30 ] ) end
some special formatting is needed for SubmitSm PDUs to show the actual message content
some special formatting is needed for SubmitSm PDUs to show the actual message content
# convert header (4 bytes) to array of 4-byte ints