Sha256: 29557d219975a9e81ff1b7d6e4a6358726ef1352df6037bfd193be18eee82247

Contents?: true

Size: 795 Bytes

Versions: 3

Compression:

Stored size: 795 Bytes

Contents

# frozen_string_literal: true

require "uri"
require "net/http"
require "tempfile"

require "breezy_pdf_lite/version"
require "breezy_pdf_lite/util"

# :nodoc
module BreezyPDFLite
  extend BreezyPDFLite::Util

  autoload :Client,        "breezy_pdf_lite/client"
  autoload :Intercept,     "breezy_pdf_lite/intercept"
  autoload :Interceptor,   "breezy_pdf_lite/interceptor"
  autoload :Middleware,    "breezy_pdf_lite/middleware"
  autoload :RenderRequest, "breezy_pdf_lite/render_request"

  BreezyPDFLiteError = Class.new(StandardError)

  mattr_accessor :secret_api_key
  @@secret_api_key = nil

  mattr_accessor :base_url
  @@base_url = "https://localhost:5001/"

  mattr_accessor :middleware_path_matchers
  @@middleware_path_matchers = [/\.pdf/]

  def self.setup
    yield self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
breezy_pdf_lite-0.0.4 lib/breezy_pdf_lite.rb
breezy_pdf_lite-0.0.3 lib/breezy_pdf_lite.rb
breezy_pdf_lite-0.0.2 lib/breezy_pdf_lite.rb