Sha256: 13a83722c1efe51c7512b1229190ce8c95d12accd1804e2b96462e819fcd5741

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

require 'thanos/resources/item/series'

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

        def build
          if @results.is_a?(Array)
            @results.collect do |comic|
              Thanos::Item::Series.new(comic)
            end
          else
            [Thanos::Item::Series.new(@results)]
          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/series.rb
thanos-0.5.0 lib/thanos/factories/item/series.rb