Sha256: e1350a87f418961efa2b7432b6c4ee925bd01ad4000c7f145aaca0933287adc2

Contents?: true

Size: 815 Bytes

Versions: 3

Compression:

Stored size: 815 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"

  Error = Class.new(StandardError)
  RenderError = Class.new(Error)

  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.1.0 lib/breezy_pdf_lite.rb
breezy_pdf_lite-0.0.7 lib/breezy_pdf_lite.rb
breezy_pdf_lite-0.0.6 lib/breezy_pdf_lite.rb