Sha256: 7be3d58d6bb105c8c648c6b574abbdd93f1d8391f018a56ced1c299b7e0cc00e

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

require 'thanos/resources/item/character'

module Thanos
  module Factory
    module Item
      class Character
        def initialize(results)
          @results = results
        end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thanos-0.6.0 lib/thanos/factories/item/character.rb
thanos-0.5.0 lib/thanos/factories/item/character.rb