Class: Empp::MsgSubmitResp

Inherits:
EmppBase show all
Defined in:
lib/empp/msg_submit_resp.rb

Instance Attribute Summary collapse

Attributes inherited from EmppBase

#command_id, #sequence_id, #total_length

Instance Method Summary collapse

Constructor Details

#initializeMsgSubmitResp

Returns a new instance of MsgSubmitResp.



10
11
12
13
14
# File 'lib/empp/msg_submit_resp.rb', line 10

def initialize
  @command_id = Constants::EMPP_SUBMIT_RESP
  @msg_id = nil
  @status = nil
end

Instance Attribute Details

#msg_idObject

Returns the value of attribute msg_id.



8
9
10
# File 'lib/empp/msg_submit_resp.rb', line 8

def msg_id
  @msg_id
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/empp/msg_submit_resp.rb', line 8

def status
  @status
end

Instance Method Details

#to_sObject



16
17
18
19
# File 'lib/empp/msg_submit_resp.rb', line 16

def to_s
  str = super
  str + ", status = #{@status}, msg_id=#{@msg_id}"
end