Class: Thanos::Factory::Item::Creator

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/factories/item/creator.rb

Instance Method Summary collapse

Constructor Details

#initialize(results) ⇒ Creator

Returns a new instance of Creator.



7
8
9
# File 'lib/thanos/factories/item/creator.rb', line 7

def initialize(results)
  @results = results
end

Instance Method Details

#buildObject



11
12
13
14
15
# File 'lib/thanos/factories/item/creator.rb', line 11

def build
  @results.collect do |comic|
    Thanos::Item::Creator.new(comic)
  end
end