Method: Packer::Message::Error.from_fields
- Defined in:
- lib/packer/message/error.rb
.from_fields(fields) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 13 14 15 16 17 18 |
# File 'lib/packer/message/error.rb', line 10 def self.from_fields(fields) msg = new msg. = fields[0] msg.target = fields[1] msg.type = fields[2] msg.data = fields[3..-1] msg.error = fields[3] msg end |