Class: Autobots::Assembler
- Inherits:
-
Object
- Object
- Autobots::Assembler
- Includes:
- Helpers::Caching
- Defined in:
- lib/autobots/assembler.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#identifiers ⇒ Object
readonly
Returns the value of attribute identifiers.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(identifiers, options = {}) ⇒ Assembler
constructor
A new instance of Assembler.
Methods included from Helpers::Caching
Constructor Details
#initialize(identifiers, options = {}) ⇒ Assembler
Returns a new instance of Assembler.
6 7 8 9 |
# File 'lib/autobots/assembler.rb', line 6 def initialize(identifiers, = {}) @identifiers, @options = identifiers, @objects = assemble(identifiers) end |
Instance Attribute Details
#identifiers ⇒ Object (readonly)
Returns the value of attribute identifiers.
4 5 6 |
# File 'lib/autobots/assembler.rb', line 4 def identifiers @identifiers end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
4 5 6 |
# File 'lib/autobots/assembler.rb', line 4 def objects @objects end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/autobots/assembler.rb', line 4 def @options end |
Instance Method Details
#data ⇒ Object
11 12 13 |
# File 'lib/autobots/assembler.rb', line 11 def data roll_out(objects) end |