Sha256: 7eee8192d20c88fd1def8fb8153f8b24e8103f2c17e64d2b799cf87c30484239
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
require 'thanos/mappers/comic_data_mapper' require 'thanos/resources/comic' module Thanos module Factory class Comic def initialize(results) @results = results end def build attributes = Thanos::ComicDataMapper.new(@results).map Thanos::Comic.new(attributes: attributes) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thanos-0.6.0 | lib/thanos/factories/comic.rb |
thanos-0.5.0 | lib/thanos/factories/comic.rb |