Class: Packer::Message::TemplateBuilder
- Defined in:
- lib/packer/message/template_builder.rb
Overview
Message representing a builder defined within the template
Instance Attribute Summary collapse
-
#builder_type ⇒ Object
The type of the builder.
-
#name ⇒ Object
The name of the builder.
Attributes inherited from Base
#data, #target, #timestamp, #type
Class Method Summary collapse
- .from_fields(fields) ⇒ Object private
Instance Attribute Details
#builder_type ⇒ Object
The type of the builder
11 12 13 |
# File 'lib/packer/message/template_builder.rb', line 11 def builder_type @builder_type end |
#name ⇒ Object
The name of the builder
8 9 10 |
# File 'lib/packer/message/template_builder.rb', line 8 def name @name end |
Class Method Details
.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.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/packer/message/template_builder.rb', line 15 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.builder_type = fields[4] msg end |