Sha256: 0fadc9b8db4a615b5fe9fcb89d5f65b28b4c6a57d73cfa43da2aad4a75e5c3d6

Contents?: true

Size: 354 Bytes

Versions: 2

Compression:

Stored size: 354 Bytes

Contents

require 'thanos/mappers/series_data_mapper'
require 'thanos/resources/series'

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

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