Class: Majoron::AntHill::SMPP::SMPPResp
- Defined in:
- lib/pdu/smpp_resp.rb
Overview
The base class for all SMPP responses.
Direct Known Subclasses
SMPPBindResp, SMPPBroadcastSMResp, SMPPCancelBroadcastSMResp, SMPPCancelSMResp, SMPPDataSMResp, SMPPDeliverSMResp, SMPPEnquireLinkResp, SMPPQueryBroadcastSMResp, SMPPQuerySMResp, SMPPReplaceSMResp, SMPPSubmitMultiResp, SMPPSubmitSMResp, SMPPUnbindResp
Instance Attribute Summary
Attributes inherited from SMPPPDU
Instance Method Summary collapse
-
#init(package, command_status = ErrorCode::ESME_ROK) ⇒ Object
Init object based on packets, for example init SMPPDataSMResp packet based on SMPPDataSM packet.
-
#initialize(command_id, command_status, sequence_number) ⇒ SMPPResp
constructor
Constructor.
Methods inherited from SMPPPDU
#command_id, #command_length, #command_status, #command_status=, #decode_packet, #encode_packet, #output_packet, #sequence_number, #sequence_number=, #validate_packet
Constructor Details
#initialize(command_id, command_status, sequence_number) ⇒ SMPPResp
Constructor
26 27 28 |
# File 'lib/pdu/smpp_resp.rb', line 26 def initialize(command_id, command_status, sequence_number) super(command_id, command_status, sequence_number) end |
Instance Method Details
#init(package, command_status = ErrorCode::ESME_ROK) ⇒ Object
Init object based on packets, for example init SMPPDataSMResp packet based on SMPPDataSM packet
32 33 34 35 |
# File 'lib/pdu/smpp_resp.rb', line 32 def init (package, command_status = ErrorCode::ESME_ROK) @header.sequence_number = package.seqeunce_number @header.command_status = command_status end |