class Thanos::Factory::Thumbnail

Public Class Methods

new(thumbnails) click to toggle source
# File lib/thanos/factories/thumbnail.rb, line 6
def initialize(thumbnails)
  @thumbnails = thumbnails
end

Public Instance Methods

build() click to toggle source
# File lib/thanos/factories/thumbnail.rb, line 10
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