Class: Smpp::Pdu::GenericNack
Overview
signals invalid message header
Constant Summary
Constants inherited from Base
Base::BIND_RECEIVER, Base::BIND_RECEIVER_RESP, Base::BIND_TRANSCEIVER, Base::BIND_TRANSCEIVER_RESP, Base::BIND_TRANSMITTER, Base::BIND_TRANSMITTER_RESP, Base::CANCEL_SM, Base::CANCEL_SM_RESP, Base::DELIVER_SM, Base::DELIVER_SM_RESP, Base::ENQUIRE_LINK, Base::ENQUIRE_LINK_RESP, Base::ESME_RALYBND, Base::ESME_RBINDFAIL, Base::ESME_RCANCELFAIL, Base::ESME_RCNTSUBDL, Base::ESME_RINVBNDSTS, Base::ESME_RINVCMDID, Base::ESME_RINVCMDLEN, Base::ESME_RINVDESTFLAG, Base::ESME_RINVDLNAME, Base::ESME_RINVDSTADR, Base::ESME_RINVDSTNPI, Base::ESME_RINVDSTTON, Base::ESME_RINVESMCLASS, Base::ESME_RINVMSGID, Base::ESME_RINVMSGLEN, Base::ESME_RINVNUMDESTS, Base::ESME_RINVNUMMSGS, Base::ESME_RINVPASWD, Base::ESME_RINVPRTFLG, Base::ESME_RINVREGDLVFLG, Base::ESME_RINVREPFLAG, Base::ESME_RINVSERTYP, Base::ESME_RINVSRCADR, Base::ESME_RINVSRCNPI, Base::ESME_RINVSRCTON, Base::ESME_RINVSUBREP, Base::ESME_RINVSYSID, Base::ESME_RINVSYSTYP, Base::ESME_RMSGQFUL, Base::ESME_ROK, Base::ESME_RREPLACEFAIL, Base::ESME_RSUBMITFAIL, Base::ESME_RSYSERR, Base::ESME_RTHROTTLED, Base::ESME_RX_T_APPN, Base::GENERIC_NACK, Base::OPTIONAL_MESSAGE_STATE, Base::OPTIONAL_RECEIPTED_MESSAGE_ID, Base::PROTOCOL_VERSION, Base::QUERY_SM, Base::QUERY_SM_RESP, Base::REPLACE_SM, Base::REPLACE_SM_RESP, Base::SEQUENCE_MAX, Base::SUBMIT_MULTI, Base::SUBMIT_MULTI_RESP, Base::SUBMIT_SM, Base::SUBMIT_SM_RESP, Base::UNBIND, Base::UNBIND_RESP
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
Attributes inherited from Base
#body, #command_id, #command_status, #data, #sequence_number
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(seq, error_code, original_sequence_code = nil) ⇒ GenericNack
constructor
A new instance of GenericNack.
Methods inherited from Base
create, fixed_int, #fixed_int, handles_cmd, #logger, next_sequence_number, #next_sequence_number, #optional_parameters_to_buffer, optional_parameters_to_buffer, parse_optional_parameters, #to_human
Constructor Details
#initialize(seq, error_code, original_sequence_code = nil) ⇒ GenericNack
Returns a new instance of GenericNack.
7 8 9 10 11 12 13 14 15 |
# File 'lib/smpp/pdu/generic_nack.rb', line 7 def initialize(seq, error_code, original_sequence_code = nil) #TODO: original_sequence_code used to be passed to this function #however, a GENERIC_NACK has only one sequence number and no body #so this is a useless variable. I leave it here only to preserve #the API, but it has no practical use. seq ||= next_sequence_number super(GENERIC_NACK, error_code, seq) @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
5 6 7 |
# File 'lib/smpp/pdu/generic_nack.rb', line 5 def error_code @error_code end |
Class Method Details
.from_wire_data(seq, status, body) ⇒ Object
17 18 19 |
# File 'lib/smpp/pdu/generic_nack.rb', line 17 def self.from_wire_data(seq, status, body) new(seq,status,body) end |