Class: Thanos::Factory::Item::Character

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

Instance Method Summary collapse

Constructor Details

#initialize(results) ⇒ Character

Returns a new instance of Character.



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

def initialize(results)
  @results = results
end

Instance Method Details

#buildObject



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

def build
  @results.collect do |character|
    Thanos::Item::Character.new(character)
  end
end