Class: Majoron::AntHill::SMPP::SMPPCancelSMResp
- Defined in:
- lib/pdu/smpp_cancel_sm_resp.rb
Instance Attribute Summary
Attributes inherited from SMPPPDU
Instance Method Summary collapse
-
#decode_packet(decoder) ⇒ Object
Interface to decode SMPP packet.
-
#encode_packet(encoder) ⇒ Object
Interface to encode SMPP packet.
-
#initialize(command_status = ErrorCode::ESME_ROK, sequence_number = nil) ⇒ SMPPCancelSMResp
constructor
Constructor.
-
#output_packet(outputter) ⇒ Object
Interface to output SMPP packet.
-
#validate_packet(validator) ⇒ Object
Interface to validate SMPP packet.
Methods inherited from SMPPResp
Methods inherited from SMPPPDU
#command_id, #command_length, #command_status, #command_status=, #sequence_number, #sequence_number=
Constructor Details
#initialize(command_status = ErrorCode::ESME_ROK, sequence_number = nil) ⇒ SMPPCancelSMResp
Constructor.
24 25 26 |
# File 'lib/pdu/smpp_cancel_sm_resp.rb', line 24 def initialize(command_status = ErrorCode::ESME_ROK, sequence_number = nil) super(CommandId::CM_CANCEL_SM_RESP, command_status, sequence_number) end |
Instance Method Details
#decode_packet(decoder) ⇒ Object
Interface to decode SMPP packet
34 35 36 37 |
# File 'lib/pdu/smpp_cancel_sm_resp.rb', line 34 def decode_packet(decoder) # Decode header and mandatory fields @header = decoder.decode_header() end |
#encode_packet(encoder) ⇒ Object
Interface to encode SMPP packet
28 29 30 31 |
# File 'lib/pdu/smpp_cancel_sm_resp.rb', line 28 def encode_packet(encoder) # Encode header and mandatory fields encoder.encode_header(@header) end |
#output_packet(outputter) ⇒ Object
Interface to output SMPP packet
46 47 48 49 |
# File 'lib/pdu/smpp_cancel_sm_resp.rb', line 46 def output_packet(outputter) # Output header and mandatory fields outputter.output_header(@header) end |
#validate_packet(validator) ⇒ Object
Interface to validate SMPP packet
40 41 42 43 |
# File 'lib/pdu/smpp_cancel_sm_resp.rb', line 40 def validate_packet(validator) # Validate header and mandatory fields validator.validate_header(@header) end |