class Packer::Message::Base

Base class for all message types

Attributes

data[RW]

Zero or more values associated with the message type

target[RW]

Target of the following output

timestamp[RW]

Unix timestamp in UTC of when the message was printed

type[RW]

Type of message outputted by Packer

Public Class Methods

from_fields(fields) click to toggle source

@api private @param [Array<String>] fields

# File lib/packer/message/base.rb, line 19
def self.from_fields(fields)
  msg = new
  msg.timestamp = fields[0]
  msg.target = fields[1]
  msg.type = fields[2]
  msg.data = fields[3..-1]
  msg
end