lib/link_thumbnailer.rb
# frozen_string_literal: true
require 'json'
require 'link_thumbnailer/version'
require 'link_thumbnailer/configuration'
require 'link_thumbnailer/exceptions'
require 'link_thumbnailer/page'
module LinkThumbnailer
class << self
attr_reader :page
def generate(url, options = {})
@page = ::LinkThumbnailer::Page.new(url, options)
page.generate
end
end
end