Sha256: 4fc66f43e1419d983daac38a6b4ef8f8a6856aaba56c4bc6976678f9b943736d

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

require 'thanos/resources/thumbnail'

module Thanos
  module Factory
    class Thumbnail
      def initialize(thumbnails)
        @thumbnails = thumbnails
      end

      def build
        # TODO: Determine if an array is ever possible.
        # If this is possible, I will need the following:
        # if @thumbnails.is_a?(Array)
        #   @thumbnails.collect do |thumbnail|
        #     Thanos::Thumbnail.new(thumbnail)
        #   end
        # else
        Thanos::Thumbnail.new(@thumbnails)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thanos-0.6.0 lib/thanos/factories/thumbnail.rb
thanos-0.5.0 lib/thanos/factories/thumbnail.rb