Class: Empp::MsgConnectResp

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

Instance Attribute Summary collapse

Attributes inherited from EmppBase

#command_id, #sequence_id, #total_length

Instance Method Summary collapse

Constructor Details

#initializeMsgConnectResp

Returns a new instance of MsgConnectResp.



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

def initialize
  @command_id = Constants::EMPP_CONNECT_RESP
  @status = nil
end

Instance Attribute Details

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

Instance Method Details

#to_sObject



15
16
17
18
# File 'lib/empp/msg_connect_resp.rb', line 15

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