Method: Packer::Message::TemplateVariable.from_fields
- Defined in:
- lib/packer/message/template_variable.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.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/packer/message/template_variable.rb', line 18 def self.from_fields(fields) msg = new msg. = fields[0] msg.target = fields[1] msg.type = fields[2] msg.data = fields[3..-1] msg.name = fields[3] msg.default = fields[4] msg.required = fields[5] msg end |