encode (SNMP::SNMPv1_Trap)

    # File lib/snmp/pdu.rb, line 366
        def encode
            pdu_data = @enterprise.encode <<
                       @agent_addr.encode <<
                       encode_integer(@generic_trap) <<
                       encode_integer(@specific_trap) <<
                       @timestamp.encode <<
                       @varbind_list.encode
            encode_tlv(SNMPv1_Trap_PDU_TAG, pdu_data)
        end