gottfrois/link_thumbnailer

View on GitHub
lib/link_thumbnailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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