class Smpp::Pdu::BindRespBase

Attributes

command_id[RW]
system_id[RW]

Public Class Methods

from_wire_data(seq, status, body) click to toggle source
# File lib/smpp/pdu/bind_resp_base.rb, line 12
def self.from_wire_data(seq, status, body)
  system_id = body.chomp("\000")
  new(seq, status, system_id)
end
new(seq, status, system_id) click to toggle source
Calls superclass method Smpp::Pdu::Base::new
# File lib/smpp/pdu/bind_resp_base.rb, line 5
def initialize(seq, status, system_id)
  seq ||= next_sequence_number
  system_id = system_id.to_s + "\000"
  super(self.class.command_id, status, seq, system_id) # pass in system_id as body for simple debugging
  @system_id = system_id
end