Sha256: e98c6264e39d2d2031910d9ebb051c7737255330c1c5cc04de3c845df4067d41

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

require 'thanos/mappers/creator_data_mapper'
require 'thanos/resources/creator'

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

      def build
        attributes = Thanos::CreatorDataMapper.new(@results).map
        Thanos::Creator.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/creator.rb
thanos-0.5.0 lib/thanos/factories/creator.rb