Class: Thanos::Factory::Item::Story

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

Instance Method Summary collapse

Constructor Details

#initialize(results) ⇒ Story

Returns a new instance of Story.



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

def initialize(results)
  @results = results
end

Instance Method Details

#buildObject



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

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