Class: RABX::ErrorMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/rabx/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from RABX::Message

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



217
218
219
# File 'lib/rabx/message.rb', line 217

def code
  @code
end

#extraObject (readonly)

Returns the value of attribute extra.



217
218
219
# File 'lib/rabx/message.rb', line 217

def extra
  @extra
end

#textObject (readonly)

Returns the value of attribute text.



217
218
219
# File 'lib/rabx/message.rb', line 217

def text
  @text
end

Instance Method Details

#parseObject



219
220
221
222
223
# File 'lib/rabx/message.rb', line 219

def parse
  @code = getnetstring
  @text = getnetstring
  @extra = gets unless eof?
end