Sha256: b0ffa1f5b1102d00e081693b4f5f77cd49b97b615aa2895da7e92a7f8373d833

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

class HtmlTo::SharingImageGenerate
  require 'erb'
  require 'sidekiq'
  include Sidekiq::Worker
  sidekiq_options queue: 'default'
  def perform(id, class_name)
    @obj = class_name.constantize.find(id)
    HtmlTo::HtmlHeadless.new.to_image(@obj)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
html_to-0.0.2 lib/html_to/sharing_image_generate.rb