Class: Nts::Ntske::ErrorRecord
- Defined in:
- lib/nts/ntske/message/error_record.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error_code) ⇒ ErrorRecord
constructor
A new instance of ErrorRecord.
Methods inherited from Record
Constructor Details
#initialize(error_code) ⇒ ErrorRecord
Returns a new instance of ErrorRecord.
16 17 18 19 |
# File 'lib/nts/ntske/message/error_record.rb', line 16 def initialize(error_code) super(true, RecordType::ERROR) @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
13 14 15 |
# File 'lib/nts/ntske/message/error_record.rb', line 13 def error_code @error_code end |
Class Method Details
.deserialize(s) ⇒ Nts::Ntske::ErrorRecord
26 27 28 29 30 |
# File 'lib/nts/ntske/message/error_record.rb', line 26 def self.deserialize(s) raise Exception unless s.length == 2 ErrorRecord.new(s) end |